Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR sdk/cosmos/mgmt-v2019_12_12] Modify Cosmos Db Readme Global Api Ver to 2020-03 #9898

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
2 changes: 1 addition & 1 deletion sdk/cosmos/mgmt-v2019_12_12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-cosmosdb</artifactId>
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_12_12;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.cosmosdb.v2019_12_12.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_12_12.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_12_12;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.cosmosdb.v2019_12_12.implementation.CosmosDBManager;
import com.microsoft.azure.management.cosmosdb.v2019_12_12.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_12_12;


/**
* 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_12_12;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Completable;
import rx.Observable;
import com.microsoft.azure.management.cosmosdb.v2019_12_12.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
@@ -0,0 +1,85 @@
/**
* 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_12_12;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Cosmos DB provisioned throughput settings object.
*/
public class ProvisionedThroughputSettingsResource {
/**
* Represents maximum throughput container can scale up to.
*/
@JsonProperty(value = "maxThroughput", required = true)
private int maxThroughput;

/**
* Cosmos DB resource auto-upgrade policy.
*/
@JsonProperty(value = "autoUpgradePolicy")
private AutoUpgradePolicyResource autoUpgradePolicy;

/**
* Represents target maximum throughput container can scale up to once
* offer is no longer in pending state.
*/
@JsonProperty(value = "targetMaxThroughput", access = JsonProperty.Access.WRITE_ONLY)
private Integer targetMaxThroughput;

/**
* Get represents maximum throughput container can scale up to.
*
* @return the maxThroughput value
*/
public int maxThroughput() {
return this.maxThroughput;
}

/**
* Set represents maximum throughput container can scale up to.
*
* @param maxThroughput the maxThroughput value to set
* @return the ProvisionedThroughputSettingsResource object itself.
*/
public ProvisionedThroughputSettingsResource withMaxThroughput(int maxThroughput) {
this.maxThroughput = maxThroughput;
return this;
}

/**
* Get cosmos DB resource auto-upgrade policy.
*
* @return the autoUpgradePolicy value
*/
public AutoUpgradePolicyResource autoUpgradePolicy() {
return this.autoUpgradePolicy;
}

/**
* Set cosmos DB resource auto-upgrade policy.
*
* @param autoUpgradePolicy the autoUpgradePolicy value to set
* @return the ProvisionedThroughputSettingsResource object itself.
*/
public ProvisionedThroughputSettingsResource withAutoUpgradePolicy(AutoUpgradePolicyResource autoUpgradePolicy) {
this.autoUpgradePolicy = autoUpgradePolicy;
return this;
}

/**
* Get represents target maximum throughput container can scale up to once offer is no longer in pending state.
*
* @return the targetMaxThroughput value
*/
public Integer targetMaxThroughput() {
return this.targetMaxThroughput;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@
public class ThroughputSettingsGetPropertiesResource {
/**
* Value of the Cosmos DB resource throughput. Either throughput is
* required or autopilotSettings is required, but not both.
* required or provisionedThroughputSettings is required, but not both.
*/
@JsonProperty(value = "throughput")
private Integer throughput;

/**
* Cosmos DB resource for Autopilot settings. Either throughput is required
* or autopilotSettings is required, but not both.
* Cosmos DB resource for provisioned throughput settings. Either
* throughput is required or provisionedThroughputSettings is required, but
* not both.
*/
@JsonProperty(value = "autopilotSettings")
private AutopilotSettingsResource autopilotSettings;
@JsonProperty(value = "provisionedThroughputSettings")
private ProvisionedThroughputSettingsResource provisionedThroughputSettings;

/**
* The minimum throughput of the resource.
Expand Down Expand Up @@ -61,7 +62,7 @@ public class ThroughputSettingsGetPropertiesResource {
private String _etag;

/**
* Get value of the Cosmos DB resource throughput. Either throughput is required or autopilotSettings is required, but not both.
* Get value of the Cosmos DB resource throughput. Either throughput is required or provisionedThroughputSettings is required, but not both.
*
* @return the throughput value
*/
Expand All @@ -70,7 +71,7 @@ public Integer throughput() {
}

/**
* Set value of the Cosmos DB resource throughput. Either throughput is required or autopilotSettings is required, but not both.
* Set value of the Cosmos DB resource throughput. Either throughput is required or provisionedThroughputSettings is required, but not both.
*
* @param throughput the throughput value to set
* @return the ThroughputSettingsGetPropertiesResource object itself.
Expand All @@ -81,22 +82,22 @@ public ThroughputSettingsGetPropertiesResource withThroughput(Integer throughput
}

/**
* Get cosmos DB resource for Autopilot settings. Either throughput is required or autopilotSettings is required, but not both.
* Get cosmos DB resource for provisioned throughput settings. Either throughput is required or provisionedThroughputSettings is required, but not both.
*
* @return the autopilotSettings value
* @return the provisionedThroughputSettings value
*/
public AutopilotSettingsResource autopilotSettings() {
return this.autopilotSettings;
public ProvisionedThroughputSettingsResource provisionedThroughputSettings() {
return this.provisionedThroughputSettings;
}

/**
* Set cosmos DB resource for Autopilot settings. Either throughput is required or autopilotSettings is required, but not both.
* Set cosmos DB resource for provisioned throughput settings. Either throughput is required or provisionedThroughputSettings is required, but not both.
*
* @param autopilotSettings the autopilotSettings value to set
* @param provisionedThroughputSettings the provisionedThroughputSettings value to set
* @return the ThroughputSettingsGetPropertiesResource object itself.
*/
public ThroughputSettingsGetPropertiesResource withAutopilotSettings(AutopilotSettingsResource autopilotSettings) {
this.autopilotSettings = autopilotSettings;
public ThroughputSettingsGetPropertiesResource withProvisionedThroughputSettings(ProvisionedThroughputSettingsResource provisionedThroughputSettings) {
this.provisionedThroughputSettings = provisionedThroughputSettings;
return this;
}

Expand Down
Loading