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
14 changes: 7 additions & 7 deletions cosmosdb/resource-manager/v2015_04_08/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.0.0</version>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-documentdb</artifactId>
<artifactId>azure-mgmt-cosmosdb</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for DocumentDB Management</name>
<description>This package contains Microsoft DocumentDB Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<name>Microsoft Azure SDK for CosmosDB Management</name>
<description>This package contains Microsoft CosmosDB Management SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
/**
* 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.v2015_04_08;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.CassandraKeyspaceInner;
import com.microsoft.azure.arm.model.Indexable;
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.v2015_04_08.implementation.CosmosDBManager;
import java.util.Map;

/**
* Type representing CassandraKeyspace.
*/
public interface CassandraKeyspace extends HasInner<CassandraKeyspaceInner>, Indexable, Updatable<CassandraKeyspace.Update>, HasManager<CosmosDBManager> {
/**
* @return the cassandraKeyspaceId value.
*/
String cassandraKeyspaceId();

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

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

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

/**
* @return the tags value.
*/
Map<String, String> tags();

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

/**
* The entirety of the CassandraKeyspace definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithApi, DefinitionStages.WithOptions, DefinitionStages.WithResource, DefinitionStages.WithCreate {
}

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

/**
* The stage of the cassandrakeyspace definition allowing to specify Api.
*/
interface WithApi {
/**
* Specifies resourceGroupName, accountName.
* @param resourceGroupName Name of an Azure resource group
* @param accountName Cosmos DB database account name
* @return the next definition stage
*/
WithOptions withExistingApi(String resourceGroupName, String accountName);
}

/**
* The stage of the cassandrakeyspace definition allowing to specify Options.
*/
interface WithOptions {
/**
* Specifies options.
* @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request
* @return the next definition stage
*/
WithResource withOptions(Map<String, String> options);
}

/**
* The stage of the cassandrakeyspace definition allowing to specify Resource.
*/
interface WithResource {
/**
* Specifies resource.
* @param resource The standard JSON format of a Cassandra keyspace
* @return the next definition stage
*/
WithCreate withResource(CassandraKeyspaceResource resource);
}

/**
* 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<CassandraKeyspace> {
}
}
/**
* The template for a CassandraKeyspace update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<CassandraKeyspace> {
}

/**
* Grouping of CassandraKeyspace update stages.
*/
interface UpdateStages {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/**
* 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.v2015_04_08;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Parameters to create and update Cosmos DB Cassandra keyspace.
*/
@JsonFlatten
public class CassandraKeyspaceCreateUpdateParameters {
/**
* The standard JSON format of a Cassandra keyspace.
*/
@JsonProperty(value = "properties.resource", required = true)
private CassandraKeyspaceResource resource;

/**
* A key-value pair of options to be applied for the request. This
* corresponds to the headers sent with the request.
*/
@JsonProperty(value = "properties.options", required = true)
private Map<String, String> options;

/**
* Get the standard JSON format of a Cassandra keyspace.
*
* @return the resource value
*/
public CassandraKeyspaceResource resource() {
return this.resource;
}

/**
* Set the standard JSON format of a Cassandra keyspace.
*
* @param resource the resource value to set
* @return the CassandraKeyspaceCreateUpdateParameters object itself.
*/
public CassandraKeyspaceCreateUpdateParameters withResource(CassandraKeyspaceResource resource) {
this.resource = resource;
return this;
}

/**
* Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
*
* @return the options value
*/
public Map<String, String> options() {
return this.options;
}

/**
* Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
*
* @param options the options value to set
* @return the CassandraKeyspaceCreateUpdateParameters object itself.
*/
public CassandraKeyspaceCreateUpdateParameters withOptions(Map<String, String> options) {
this.options = options;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* 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.v2015_04_08;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Cosmos DB Cassandra keyspace id object.
*/
public class CassandraKeyspaceResource {
/**
* Name of the Cosmos DB Cassandra keyspace.
*/
@JsonProperty(value = "id", required = true)
private String id;

/**
* Get name of the Cosmos DB Cassandra keyspace.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* Set name of the Cosmos DB Cassandra keyspace.
*
* @param id the id value to set
* @return the CassandraKeyspaceResource object itself.
*/
public CassandraKeyspaceResource withId(String id) {
this.id = id;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* 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.v2015_04_08;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Cosmos DB Cassandra table partition key.
*/
public class CassandraPartitionKey {
/**
* Name of the Cosmos DB Cassandra table partition key.
*/
@JsonProperty(value = "name")
private String name;

/**
* Get name of the Cosmos DB Cassandra table partition key.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set name of the Cosmos DB Cassandra table partition key.
*
* @param name the name value to set
* @return the CassandraPartitionKey object itself.
*/
public CassandraPartitionKey withName(String name) {
this.name = name;
return this;
}

}
Loading