-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR cosmos-db/resource-manager] Rename Gremlin container by graph (…
…#3438) * Generated from cdf503be9781e3833dabc4607cc59c5d59c21370 Rename Gremlin container by graph * Generated from 8133c0ddc061fa40abb3a9fa9324242b7c6ad6ce Replace mongo with mongodb * Generated from ba09250a931cc31bf070d1f7a0612726ef1a97ee Update MongDB name in example
- Loading branch information
1 parent
ec7bc75
commit f9b18be
Showing
39 changed files
with
4,196 additions
and
1,751 deletions.
There are no files selected for viewing
201 changes: 98 additions & 103 deletions
201
...8/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/DatabaseAccounts.java
Large diffs are not rendered by default.
Oops, something went wrong.
169 changes: 169 additions & 0 deletions
169
...04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraph.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
/** | ||
* 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.GremlinGraphInner; | ||
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.v2015_04_08.implementation.DocumentDBManager; | ||
import java.util.Map; | ||
|
||
/** | ||
* Type representing GremlinGraph. | ||
*/ | ||
public interface GremlinGraph extends HasInner<GremlinGraphInner>, Indexable, Refreshable<GremlinGraph>, Updatable<GremlinGraph.Update>, HasManager<DocumentDBManager> { | ||
/** | ||
* @return the _etag value. | ||
*/ | ||
String _etag(); | ||
|
||
/** | ||
* @return the _rid value. | ||
*/ | ||
String _rid(); | ||
|
||
/** | ||
* @return the _ts value. | ||
*/ | ||
Object _ts(); | ||
|
||
/** | ||
* @return the conflictResolutionPolicy value. | ||
*/ | ||
ConflictResolutionPolicy conflictResolutionPolicy(); | ||
|
||
/** | ||
* @return the defaultTtl value. | ||
*/ | ||
Integer defaultTtl(); | ||
|
||
/** | ||
* @return the gremlinGraphId value. | ||
*/ | ||
String gremlinGraphId(); | ||
|
||
/** | ||
* @return the id value. | ||
*/ | ||
String id(); | ||
|
||
/** | ||
* @return the indexingPolicy value. | ||
*/ | ||
IndexingPolicy indexingPolicy(); | ||
|
||
/** | ||
* @return the location value. | ||
*/ | ||
String location(); | ||
|
||
/** | ||
* @return the name value. | ||
*/ | ||
String name(); | ||
|
||
/** | ||
* @return the partitionKey value. | ||
*/ | ||
ContainerPartitionKey partitionKey(); | ||
|
||
/** | ||
* @return the tags value. | ||
*/ | ||
Map<String, String> tags(); | ||
|
||
/** | ||
* @return the type value. | ||
*/ | ||
String type(); | ||
|
||
/** | ||
* @return the uniqueKeyPolicy value. | ||
*/ | ||
UniqueKeyPolicy uniqueKeyPolicy(); | ||
|
||
/** | ||
* The entirety of the GremlinGraph definition. | ||
*/ | ||
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithOptions, DefinitionStages.WithResource, DefinitionStages.WithCreate { | ||
} | ||
|
||
/** | ||
* Grouping of GremlinGraph definition stages. | ||
*/ | ||
interface DefinitionStages { | ||
/** | ||
* The first stage of a GremlinGraph definition. | ||
*/ | ||
interface Blank extends WithDatabasis { | ||
} | ||
|
||
/** | ||
* The stage of the gremlingraph definition allowing to specify Databasis. | ||
*/ | ||
interface WithDatabasis { | ||
/** | ||
* Specifies resourceGroupName, accountName, databaseName. | ||
* @param resourceGroupName Name of an Azure resource group | ||
* @param accountName Cosmos DB database account name | ||
* @param databaseName Cosmos DB database name | ||
* @return the next definition stage | ||
*/ | ||
WithOptions withExistingDatabasis(String resourceGroupName, String accountName, String databaseName); | ||
} | ||
|
||
/** | ||
* The stage of the gremlingraph 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 gremlingraph definition allowing to specify Resource. | ||
*/ | ||
interface WithResource { | ||
/** | ||
* Specifies resource. | ||
* @param resource The standard JSON format of a Gremlin graph | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withResource(GremlinGraphResource 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<GremlinGraph> { | ||
} | ||
} | ||
/** | ||
* The template for a GremlinGraph update operation, containing all the settings that can be modified. | ||
*/ | ||
interface Update extends Appliable<GremlinGraph> { | ||
} | ||
|
||
/** | ||
* Grouping of GremlinGraph update stages. | ||
*/ | ||
interface UpdateStages { | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
...m/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphCreateUpdateParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Gremlin graph. | ||
*/ | ||
@JsonFlatten | ||
public class GremlinGraphCreateUpdateParameters { | ||
/** | ||
* The standard JSON format of a Gremlin graph. | ||
*/ | ||
@JsonProperty(value = "properties.resource", required = true) | ||
private GremlinGraphResource 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 Gremlin graph. | ||
* | ||
* @return the resource value | ||
*/ | ||
public GremlinGraphResource resource() { | ||
return this.resource; | ||
} | ||
|
||
/** | ||
* Set the standard JSON format of a Gremlin graph. | ||
* | ||
* @param resource the resource value to set | ||
* @return the GremlinGraphCreateUpdateParameters object itself. | ||
*/ | ||
public GremlinGraphCreateUpdateParameters withResource(GremlinGraphResource 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 GremlinGraphCreateUpdateParameters object itself. | ||
*/ | ||
public GremlinGraphCreateUpdateParameters withOptions(Map<String, String> options) { | ||
this.options = options; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.