From b48718041d957b920adb097addf0a3da4d825d77 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 15 Apr 2020 19:41:57 +0000 Subject: [PATCH 1/2] Generated from c363d08ee514b6146d9010b6a4da9b849542ccf4 Update cosmos-db.json --- sdk/cosmos/mgmt-v2020_03_01/pom.xml | 2 +- .../implementation/NotebookWorkspaceImpl.java | 5 ++-- .../NotebookWorkspacesInner.java | 28 +++++++++---------- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/sdk/cosmos/mgmt-v2020_03_01/pom.xml b/sdk/cosmos/mgmt-v2020_03_01/pom.xml index cd6389213b49..1d750a0ced9a 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/pom.xml +++ b/sdk/cosmos/mgmt-v2020_03_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.3.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-cosmosdb diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspaceImpl.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspaceImpl.java index 71ad5a76e997..b9f5dd887b86 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspaceImpl.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspaceImpl.java @@ -10,7 +10,6 @@ import com.microsoft.azure.management.cosmosdb.v2020_03_01.NotebookWorkspace; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; -import com.microsoft.azure.management.cosmosdb.v2020_03_01.NotebookWorkspaceCreateUpdateParameters; import rx.Observable; class NotebookWorkspaceImpl extends CreatableUpdatableImpl implements NotebookWorkspace, NotebookWorkspace.Definition, NotebookWorkspace.Update { @@ -45,14 +44,14 @@ public CosmosDBManager manager() { @Override public Observable createResourceAsync() { NotebookWorkspacesInner client = this.manager().inner().notebookWorkspaces(); - return client.createOrUpdateAsync(this.resourceGroupName, this.accountName, new NotebookWorkspaceCreateUpdateParameters()) + return client.createOrUpdateAsync(this.resourceGroupName, this.accountName) .map(innerToFluentMap(this)); } @Override public Observable updateResourceAsync() { NotebookWorkspacesInner client = this.manager().inner().notebookWorkspaces(); - return client.createOrUpdateAsync(this.resourceGroupName, this.accountName, new NotebookWorkspaceCreateUpdateParameters()) + return client.createOrUpdateAsync(this.resourceGroupName, this.accountName) .map(innerToFluentMap(this)); } diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspacesInner.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspacesInner.java index ec68f8952a06..d7bf96ca2bca 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspacesInner.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/NotebookWorkspacesInner.java @@ -288,8 +288,8 @@ private ServiceResponse getDelegate(Response createOrUpdateAsync(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, accountName, notebookCreateUpdateParameters), serviceCallback); + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); } /** @@ -313,8 +313,8 @@ public ServiceFuture createOrUpdateAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createOrUpdateAsync(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters) { - return createOrUpdateWithServiceResponseAsync(resourceGroupName, accountName, notebookCreateUpdateParameters).map(new Func1, NotebookWorkspaceInner>() { + public Observable createOrUpdateAsync(String resourceGroupName, String accountName) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1, NotebookWorkspaceInner>() { @Override public NotebookWorkspaceInner call(ServiceResponse response) { return response.body(); @@ -330,7 +330,7 @@ public NotebookWorkspaceInner call(ServiceResponse respo * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters) { + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String accountName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -356,8 +356,8 @@ public Observable> createOrUpdateWithSer * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the NotebookWorkspaceInner object if successful. */ - public NotebookWorkspaceInner beginCreateOrUpdate(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters) { - return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, accountName, notebookCreateUpdateParameters).toBlocking().single().body(); + public NotebookWorkspaceInner beginCreateOrUpdate(String resourceGroupName, String accountName) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); } /** @@ -369,8 +369,8 @@ public NotebookWorkspaceInner beginCreateOrUpdate(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, accountName, notebookCreateUpdateParameters), serviceCallback); + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); } /** @@ -381,8 +381,8 @@ public ServiceFuture beginCreateOrUpdateAsync(String res * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the NotebookWorkspaceInner object */ - public Observable beginCreateOrUpdateAsync(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters) { - return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, accountName, notebookCreateUpdateParameters).map(new Func1, NotebookWorkspaceInner>() { + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String accountName) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1, NotebookWorkspaceInner>() { @Override public NotebookWorkspaceInner call(ServiceResponse response) { return response.body(); @@ -398,7 +398,7 @@ public NotebookWorkspaceInner call(ServiceResponse respo * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the NotebookWorkspaceInner object */ - public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String accountName, NotebookWorkspaceCreateUpdateParameters notebookCreateUpdateParameters) { + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String accountName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } From b9fc97a2304241d1113a304205e3986a592e39a2 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 16 Apr 2020 13:27:01 +0000 Subject: [PATCH 2/2] Generated from 25c6d9301d33413c3f6fe52e9d6cc3e7165027e3 fix whitespace --- .../PrivateEndpointConnection.java | 62 ++++++++++++++++++- .../v2020_03_01/PrivateLinkResource.java | 5 ++ .../PrivateEndpointConnectionImpl.java | 22 +++++++ .../PrivateEndpointConnectionInner.java | 52 ++++++++++++++++ .../PrivateLinkResourceImpl.java | 5 ++ .../PrivateLinkResourceInner.java | 15 +++++ 6 files changed, 159 insertions(+), 2 deletions(-) diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java index 5b1e6771b85d..da125104ed80 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java @@ -22,6 +22,11 @@ * Type representing PrivateEndpointConnection. */ public interface PrivateEndpointConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the groupId value. + */ + String groupId(); + /** * @return the id value. */ @@ -42,6 +47,11 @@ public interface PrivateEndpointConnection extends HasInner, DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState { + interface WithCreate extends Creatable, DefinitionStages.WithGroupId, DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState, DefinitionStages.WithProvisioningState { } } /** * The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState { + interface Update extends Appliable, UpdateStages.WithGroupId, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState { } /** * Grouping of PrivateEndpointConnection update stages. */ interface UpdateStages { + /** + * The stage of the privateendpointconnection update allowing to specify GroupId. + */ + interface WithGroupId { + /** + * Specifies groupId. + * @param groupId Group id of the private endpoint + * @return the next update stage + */ + Update withGroupId(String groupId); + } + /** * The stage of the privateendpointconnection update allowing to specify PrivateEndpoint. */ @@ -142,5 +188,17 @@ interface WithPrivateLinkServiceConnectionState { Update withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState); } + /** + * The stage of the privateendpointconnection update allowing to specify ProvisioningState. + */ + interface WithProvisioningState { + /** + * Specifies provisioningState. + * @param provisioningState Provisioning state of the private endpoint + * @return the next update stage + */ + Update withProvisioningState(String provisioningState); + } + } } diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java index 1b170de7dadc..d7e8f1fe9f00 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java @@ -40,6 +40,11 @@ public interface PrivateLinkResource extends HasInner, */ List requiredMembers(); + /** + * @return the requiredZoneNames value. + */ + List requiredZoneNames(); + /** * @return the type value. */ diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionImpl.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionImpl.java index ffc3eb4aba66..5f1b97a931fa 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionImpl.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionImpl.java @@ -71,6 +71,11 @@ public boolean isInCreateMode() { } + @Override + public String groupId() { + return this.inner().groupId(); + } + @Override public String id() { return this.inner().id(); @@ -91,6 +96,11 @@ public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionSta return this.inner().privateLinkServiceConnectionState(); } + @Override + public String provisioningState() { + return this.inner().provisioningState(); + } + @Override public String type() { return this.inner().type(); @@ -103,6 +113,12 @@ public PrivateEndpointConnectionImpl withExistingDatabaseAccount(String resource return this; } + @Override + public PrivateEndpointConnectionImpl withGroupId(String groupId) { + this.inner().withGroupId(groupId); + return this; + } + @Override public PrivateEndpointConnectionImpl withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) { this.inner().withPrivateEndpoint(privateEndpoint); @@ -115,4 +131,10 @@ public PrivateEndpointConnectionImpl withPrivateLinkServiceConnectionState(Priva return this; } + @Override + public PrivateEndpointConnectionImpl withProvisioningState(String provisioningState) { + this.inner().withProvisioningState(provisioningState); + return this; + } + } diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionInner.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionInner.java index 36f4272b45ed..17dc3620009a 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionInner.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateEndpointConnectionInner.java @@ -31,6 +31,18 @@ public class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties.privateLinkServiceConnectionState") private PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState; + /** + * Group id of the private endpoint. + */ + @JsonProperty(value = "properties.groupId") + private String groupId; + + /** + * Provisioning state of the private endpoint. + */ + @JsonProperty(value = "properties.provisioningState") + private String provisioningState; + /** * Get private endpoint which the connection belongs to. * @@ -71,4 +83,44 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(Priv return this; } + /** + * Get group id of the private endpoint. + * + * @return the groupId value + */ + public String groupId() { + return this.groupId; + } + + /** + * Set group id of the private endpoint. + * + * @param groupId the groupId value to set + * @return the PrivateEndpointConnectionInner object itself. + */ + public PrivateEndpointConnectionInner withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Get provisioning state of the private endpoint. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Set provisioning state of the private endpoint. + * + * @param provisioningState the provisioningState value to set + * @return the PrivateEndpointConnectionInner object itself. + */ + public PrivateEndpointConnectionInner withProvisioningState(String provisioningState) { + this.provisioningState = provisioningState; + return this; + } + } diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceImpl.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceImpl.java index 9ed8c62cce99..36396908a160 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceImpl.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceImpl.java @@ -61,6 +61,11 @@ public List requiredMembers() { return this.inner().requiredMembers(); } + @Override + public List requiredZoneNames() { + return this.inner().requiredZoneNames(); + } + @Override public String type() { return this.inner().type(); diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceInner.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceInner.java index 8ff52c836b39..c22a64de0ba4 100644 --- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceInner.java +++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/PrivateLinkResourceInner.java @@ -30,6 +30,12 @@ public class PrivateLinkResourceInner extends ARMProxyResource { @JsonProperty(value = "properties.requiredMembers", access = JsonProperty.Access.WRITE_ONLY) private List requiredMembers; + /** + * The private link resource required zone names. + */ + @JsonProperty(value = "properties.requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) + private List requiredZoneNames; + /** * Get the private link resource group id. * @@ -48,4 +54,13 @@ public List requiredMembers() { return this.requiredMembers; } + /** + * Get the private link resource required zone names. + * + * @return the requiredZoneNames value + */ + public List requiredZoneNames() { + return this.requiredZoneNames; + } + }