Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/cosmos/mgmt-v2019_08_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-cosmosdb</artifactId>
<version>1.0.0-beta-2</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for CosmosDB Management</name>
<description>This package contains Microsoft CosmosDB Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cosmosdb.v2019_08_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation.NotebookWorkspaceInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation.CosmosDBManager;

/**
* Type representing NotebookWorkspace.
*/
public interface NotebookWorkspace extends HasInner<NotebookWorkspaceInner>, Indexable, Refreshable<NotebookWorkspace>, Updatable<NotebookWorkspace.Update>, HasManager<CosmosDBManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the notebookServerEndpoint value.
*/
String notebookServerEndpoint();

/**
* @return the status value.
*/
String status();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the NotebookWorkspace definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabaseAccount, DefinitionStages.WithCreate {
}

/**
* Grouping of NotebookWorkspace definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a NotebookWorkspace definition.
*/
interface Blank extends WithDatabaseAccount {
}

/**
* The stage of the notebookworkspace definition allowing to specify DatabaseAccount.
*/
interface WithDatabaseAccount {
/**
* Specifies resourceGroupName, accountName.
* @param resourceGroupName Name of an Azure resource group
* @param accountName Cosmos DB database account name
* @return the next definition stage
*/
WithCreate withExistingDatabaseAccount(String resourceGroupName, String accountName);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<NotebookWorkspace> {
}
}
/**
* The template for a NotebookWorkspace update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<NotebookWorkspace> {
}

/**
* Grouping of NotebookWorkspace update stages.
*/
interface UpdateStages {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cosmosdb.v2019_08_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation.CosmosDBManager;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation.NotebookWorkspaceConnectionInfoResultInner;

/**
* Type representing NotebookWorkspaceConnectionInfoResult.
*/
public interface NotebookWorkspaceConnectionInfoResult extends HasInner<NotebookWorkspaceConnectionInfoResultInner>, HasManager<CosmosDBManager> {
/**
* @return the authToken value.
*/
String authToken();

/**
* @return the notebookServerEndpoint value.
*/
String notebookServerEndpoint();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cosmosdb.v2019_08_01_preview;


/**
* Parameters to create a notebook workspace resource.
*/
public class NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cosmosdb.v2019_08_01_preview;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Completable;
import rx.Observable;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation.NotebookWorkspacesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing NotebookWorkspaces.
*/
public interface NotebookWorkspaces extends SupportsCreating<NotebookWorkspace.DefinitionStages.Blank>, HasInner<NotebookWorkspacesInner> {
/**
* Retrieves the connection info for the notebook workspace.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Cosmos DB database account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<NotebookWorkspaceConnectionInfoResult> listConnectionInfoAsync(String resourceGroupName, String accountName);

/**
* Regenerates the auth token for the notebook workspace.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Cosmos DB database account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable regenerateAuthTokenAsync(String resourceGroupName, String accountName);

/**
* Starts the notebook workspace.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Cosmos DB database account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable startAsync(String resourceGroupName, String accountName);

/**
* Gets the notebook workspace for a Cosmos DB account.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Cosmos DB database account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<NotebookWorkspace> getAsync(String resourceGroupName, String accountName);

/**
* Gets the notebook workspace resources of an existing Cosmos DB account.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Cosmos DB database account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<NotebookWorkspace> listByDatabaseAccountAsync(String resourceGroupName, String accountName);

/**
* Deletes the notebook workspace for a Cosmos DB account.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Cosmos DB database account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteAsync(String resourceGroupName, String accountName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,19 @@ public GremlinResourcesInner gremlinResources() {
return this.gremlinResources;
}

/**
* The NotebookWorkspacesInner object to access its operations.
*/
private NotebookWorkspacesInner notebookWorkspaces;

/**
* Gets the NotebookWorkspacesInner object to access its operations.
* @return the NotebookWorkspacesInner object.
*/
public NotebookWorkspacesInner notebookWorkspaces() {
return this.notebookWorkspaces;
}

/**
* The PrivateLinkResourcesInner object to access its operations.
*/
Expand Down Expand Up @@ -455,6 +468,7 @@ protected void initialize() {
this.tableResources = new TableResourcesInner(restClient().retrofit(), this);
this.cassandraResources = new CassandraResourcesInner(restClient().retrofit(), this);
this.gremlinResources = new GremlinResourcesInner(restClient().retrofit(), this);
this.notebookWorkspaces = new NotebookWorkspacesInner(restClient().retrofit(), this);
this.privateLinkResources = new PrivateLinkResourcesInner(restClient().retrofit(), this);
this.privateEndpointConnections = new PrivateEndpointConnectionsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.TableResources;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.CassandraResources;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.GremlinResources;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.NotebookWorkspaces;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.PrivateLinkResources;
import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.PrivateEndpointConnections;
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
Expand Down Expand Up @@ -61,6 +62,7 @@ public final class CosmosDBManager extends ManagerCore<CosmosDBManager, CosmosDB
private TableResources tableResources;
private CassandraResources cassandraResources;
private GremlinResources gremlinResources;
private NotebookWorkspaces notebookWorkspaces;
private PrivateLinkResources privateLinkResources;
private PrivateEndpointConnections privateEndpointConnections;
/**
Expand Down Expand Up @@ -290,6 +292,16 @@ public GremlinResources gremlinResources() {
return this.gremlinResources;
}

/**
* @return Entry point to manage NotebookWorkspaces.
*/
public NotebookWorkspaces notebookWorkspaces() {
if (this.notebookWorkspaces == null) {
this.notebookWorkspaces = new NotebookWorkspacesImpl(this);
}
return this.notebookWorkspaces;
}

/**
* @return Entry point to manage PrivateLinkResources.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation;

import com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.NotebookWorkspaceConnectionInfoResult;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;

class NotebookWorkspaceConnectionInfoResultImpl extends WrapperImpl<NotebookWorkspaceConnectionInfoResultInner> implements NotebookWorkspaceConnectionInfoResult {
private final CosmosDBManager manager;
NotebookWorkspaceConnectionInfoResultImpl(NotebookWorkspaceConnectionInfoResultInner inner, CosmosDBManager manager) {
super(inner);
this.manager = manager;
}

@Override
public CosmosDBManager manager() {
return this.manager;
}

@Override
public String authToken() {
return this.inner().authToken();
}

@Override
public String notebookServerEndpoint() {
return this.inner().notebookServerEndpoint();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cosmosdb.v2019_08_01_preview.implementation;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The connection info for the given notebook workspace.
*/
public class NotebookWorkspaceConnectionInfoResultInner {
/**
* Specifies auth token used for connecting to Notebook server (uses
* token-based auth).
*/
@JsonProperty(value = "authToken", access = JsonProperty.Access.WRITE_ONLY)
private String authToken;

/**
* Specifies the endpoint of Notebook server.
*/
@JsonProperty(value = "notebookServerEndpoint", access = JsonProperty.Access.WRITE_ONLY)
private String notebookServerEndpoint;

/**
* Get specifies auth token used for connecting to Notebook server (uses token-based auth).
*
* @return the authToken value
*/
public String authToken() {
return this.authToken;
}

/**
* Get specifies the endpoint of Notebook server.
*
* @return the notebookServerEndpoint value
*/
public String notebookServerEndpoint() {
return this.notebookServerEndpoint;
}

}
Loading