Skip to content

Commit

Permalink
CodeGen from PR 12795 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Correctly document minimumTlsVersion - which is create-only mutable (#12795)

* Correctly document minimumTlsVersion - which is really only configurable at create time.

* Style fix for empty object
  • Loading branch information
SDKAuto committed Mar 25, 2021
1 parent c14e369 commit e2d4939
Show file tree
Hide file tree
Showing 24 changed files with 125 additions and 109 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2021-03-25)

- Azure Resource Manager RedisEnterprise client library for Java. This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.2 (2021-03-02)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-redisenterprise</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for RedisEnterprise Management</name>
<description>This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2021-03. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<description>This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for managing Redis Enterprise resources in Azure. Package tag package-2021-03.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.redisenterprise")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

package com.azure.resourcemanager.redisenterprise.implementation;

import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.models.AccessKeysInner;
import com.azure.resourcemanager.redisenterprise.models.AccessKeys;

public final class AccessKeysImpl implements AccessKeys {
private AccessKeysInner innerObject;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

AccessKeysImpl(AccessKeysInner innerObject, RedisEnterpriseManager serviceManager) {
AccessKeysImpl(
AccessKeysInner innerObject, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
Expand All @@ -30,7 +30,7 @@ public AccessKeysInner innerModel() {
return this.innerObject;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.redisenterprise.models.Cluster;
Expand All @@ -24,7 +23,7 @@
public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
private ClusterInner innerObject;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

public String id() {
return this.innerModel().id();
Expand Down Expand Up @@ -110,7 +109,7 @@ public ClusterInner innerModel() {
return this.innerObject;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}

Expand Down Expand Up @@ -143,7 +142,7 @@ public Cluster create(Context context) {
return this;
}

ClusterImpl(String name, RedisEnterpriseManager serviceManager) {
ClusterImpl(String name, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = new ClusterInner();
this.serviceManager = serviceManager;
this.clusterName = name;
Expand Down Expand Up @@ -172,7 +171,8 @@ public Cluster apply(Context context) {
return this;
}

ClusterImpl(ClusterInner innerObject, RedisEnterpriseManager serviceManager) {
ClusterImpl(
ClusterInner innerObject, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
import com.azure.resourcemanager.redisenterprise.models.AccessKeys;
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
Expand All @@ -27,7 +26,7 @@
public final class DatabaseImpl implements Database, Database.Definition, Database.Update {
private DatabaseInner innerObject;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

public String id() {
return this.innerModel().id();
Expand Down Expand Up @@ -82,7 +81,7 @@ public DatabaseInner innerModel() {
return this.innerObject;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}

Expand Down Expand Up @@ -118,7 +117,7 @@ public Database create(Context context) {
return this;
}

DatabaseImpl(String name, RedisEnterpriseManager serviceManager) {
DatabaseImpl(String name, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = new DatabaseInner();
this.serviceManager = serviceManager;
this.databaseName = name;
Expand Down Expand Up @@ -147,7 +146,8 @@ public Database apply(Context context) {
return this;
}

DatabaseImpl(DatabaseInner innerObject, RedisEnterpriseManager serviceManager) {
DatabaseImpl(
DatabaseInner innerObject, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private Mono<PagedResponse<DatabaseInner>> listByClusterSinglePageAsync(
res.getValue().value(),
res.getValue().nextLink(),
null))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -468,7 +468,7 @@ private Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(
parameters,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -749,7 +749,7 @@ private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(
parameters,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -1023,7 +1023,7 @@ private Mono<Response<DatabaseInner>> getWithResponseAsync(
this.client.getSubscriptionId(),
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -1185,7 +1185,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
this.client.getSubscriptionId(),
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -1435,7 +1435,7 @@ private Mono<Response<AccessKeysInner>> listKeysWithResponseAsync(
this.client.getSubscriptionId(),
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -1604,7 +1604,7 @@ private Mono<Response<Flux<ByteBuffer>>> regenerateKeyWithResponseAsync(
parameters,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -1906,7 +1906,7 @@ private Mono<Response<Flux<ByteBuffer>>> importMethodWithResponseAsync(
parameters,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -2204,7 +2204,7 @@ private Mono<Response<Flux<ByteBuffer>>> exportWithResponseAsync(
parameters,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -2476,7 +2476,7 @@ private Mono<PagedResponse<DatabaseInner>> listByClusterNextSinglePageAsync(Stri
res.getValue().value(),
res.getValue().nextLink(),
null))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.DatabasesClient;
import com.azure.resourcemanager.redisenterprise.fluent.models.AccessKeysInner;
import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
Expand All @@ -26,9 +25,10 @@ public final class DatabasesImpl implements Databases {

private final DatabasesClient innerClient;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

public DatabasesImpl(DatabasesClient innerClient, RedisEnterpriseManager serviceManager) {
public DatabasesImpl(
DatabasesClient innerClient, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
Expand Down Expand Up @@ -266,7 +266,7 @@ private DatabasesClient serviceClient() {
return this.innerClient;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package com.azure.resourcemanager.redisenterprise.implementation;

import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.models.OperationInner;
import com.azure.resourcemanager.redisenterprise.models.ActionType;
import com.azure.resourcemanager.redisenterprise.models.Operation;
Expand All @@ -14,9 +13,10 @@
public final class OperationImpl implements Operation {
private OperationInner innerObject;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

OperationImpl(OperationInner innerObject, RedisEnterpriseManager serviceManager) {
OperationImpl(
OperationInner innerObject, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
Expand Down Expand Up @@ -45,7 +45,7 @@ public OperationInner innerModel() {
return this.innerObject;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
package com.azure.resourcemanager.redisenterprise.implementation;

import com.azure.core.management.exception.ManagementError;
import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusInner;
import com.azure.resourcemanager.redisenterprise.models.OperationStatus;

public final class OperationStatusImpl implements OperationStatus {
private OperationStatusInner innerObject;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

OperationStatusImpl(OperationStatusInner innerObject, RedisEnterpriseManager serviceManager) {
OperationStatusImpl(
OperationStatusInner innerObject,
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
Expand Down Expand Up @@ -47,7 +48,7 @@ public OperationStatusInner innerModel() {
return this.innerObject;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private Mono<PagedResponse<OperationInner>> listSinglePageAsync() {
res.getValue().value(),
res.getValue().nextLink(),
null))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down Expand Up @@ -228,7 +228,7 @@ private Mono<PagedResponse<OperationInner>> listNextSinglePageAsync(String nextL
res.getValue().value(),
res.getValue().nextLink(),
null))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager;
import com.azure.resourcemanager.redisenterprise.fluent.OperationsClient;
import com.azure.resourcemanager.redisenterprise.fluent.models.OperationInner;
import com.azure.resourcemanager.redisenterprise.models.Operation;
Expand All @@ -19,9 +18,10 @@ public final class OperationsImpl implements Operations {

private final OperationsClient innerClient;

private final RedisEnterpriseManager serviceManager;
private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager;

public OperationsImpl(OperationsClient innerClient, RedisEnterpriseManager serviceManager) {
public OperationsImpl(
OperationsClient innerClient, com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
Expand All @@ -40,7 +40,7 @@ private OperationsClient serviceClient() {
return this.innerClient;
}

private RedisEnterpriseManager manager() {
private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private Mono<Response<OperationStatusInner>> getWithResponseAsync(String locatio
this.client.getSubscriptionId(),
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
Expand Down
Loading

0 comments on commit e2d4939

Please sign in to comment.