forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 941fc50639b5a3b3aff68afbc0356030f03dd4fe
- Loading branch information
SDK Automation
committed
Nov 4, 2020
1 parent
6276a8c
commit 9fa3f94
Showing
82 changed files
with
7,545 additions
and
813 deletions.
There are no files selected for viewing
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
59 changes: 59 additions & 0 deletions
59
...ew/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_06_01_preview/ApiType.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,59 @@ | ||
/** | ||
* 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.v2020_06_01_preview; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for ApiType. | ||
*/ | ||
public final class ApiType extends ExpandableStringEnum<ApiType> { | ||
/** Static value None for ApiType. */ | ||
public static final ApiType NONE = fromString("None"); | ||
|
||
/** Static value MongoDB for ApiType. */ | ||
public static final ApiType MONGO_DB = fromString("MongoDB"); | ||
|
||
/** Static value Gremlin for ApiType. */ | ||
public static final ApiType GREMLIN = fromString("Gremlin"); | ||
|
||
/** Static value Cassandra for ApiType. */ | ||
public static final ApiType CASSANDRA = fromString("Cassandra"); | ||
|
||
/** Static value Table for ApiType. */ | ||
public static final ApiType TABLE = fromString("Table"); | ||
|
||
/** Static value Sql for ApiType. */ | ||
public static final ApiType SQL = fromString("Sql"); | ||
|
||
/** Static value Etcd for ApiType. */ | ||
public static final ApiType ETCD = fromString("Etcd"); | ||
|
||
/** Static value GremlinV2 for ApiType. */ | ||
public static final ApiType GREMLIN_V2 = fromString("GremlinV2"); | ||
|
||
/** | ||
* Creates or finds a ApiType from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding ApiType | ||
*/ | ||
@JsonCreator | ||
public static ApiType fromString(String name) { | ||
return fromString(name, ApiType.class); | ||
} | ||
|
||
/** | ||
* @return known ApiType values | ||
*/ | ||
public static Collection<ApiType> values() { | ||
return values(ApiType.class); | ||
} | ||
} |
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
152 changes: 152 additions & 0 deletions
152
...src/main/java/com/microsoft/azure/management/cosmosdb/v2020_06_01_preview/CorsPolicy.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,152 @@ | ||
/** | ||
* 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.v2020_06_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The CORS policy for the Cosmos DB database account. | ||
*/ | ||
public class CorsPolicy { | ||
/** | ||
* The origin domains that are permitted to make a request against the | ||
* service via CORS. | ||
*/ | ||
@JsonProperty(value = "allowedOrigins", required = true) | ||
private String allowedOrigins; | ||
|
||
/** | ||
* The methods (HTTP request verbs) that the origin domain may use for a | ||
* CORS request. | ||
*/ | ||
@JsonProperty(value = "allowedMethods") | ||
private String allowedMethods; | ||
|
||
/** | ||
* The request headers that the origin domain may specify on the CORS | ||
* request. | ||
*/ | ||
@JsonProperty(value = "allowedHeaders") | ||
private String allowedHeaders; | ||
|
||
/** | ||
* The response headers that may be sent in the response to the CORS | ||
* request and exposed by the browser to the request issuer. | ||
*/ | ||
@JsonProperty(value = "exposedHeaders") | ||
private String exposedHeaders; | ||
|
||
/** | ||
* The maximum amount time that a browser should cache the preflight | ||
* OPTIONS request. | ||
*/ | ||
@JsonProperty(value = "maxAgeInSeconds") | ||
private Long maxAgeInSeconds; | ||
|
||
/** | ||
* Get the origin domains that are permitted to make a request against the service via CORS. | ||
* | ||
* @return the allowedOrigins value | ||
*/ | ||
public String allowedOrigins() { | ||
return this.allowedOrigins; | ||
} | ||
|
||
/** | ||
* Set the origin domains that are permitted to make a request against the service via CORS. | ||
* | ||
* @param allowedOrigins the allowedOrigins value to set | ||
* @return the CorsPolicy object itself. | ||
*/ | ||
public CorsPolicy withAllowedOrigins(String allowedOrigins) { | ||
this.allowedOrigins = allowedOrigins; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the methods (HTTP request verbs) that the origin domain may use for a CORS request. | ||
* | ||
* @return the allowedMethods value | ||
*/ | ||
public String allowedMethods() { | ||
return this.allowedMethods; | ||
} | ||
|
||
/** | ||
* Set the methods (HTTP request verbs) that the origin domain may use for a CORS request. | ||
* | ||
* @param allowedMethods the allowedMethods value to set | ||
* @return the CorsPolicy object itself. | ||
*/ | ||
public CorsPolicy withAllowedMethods(String allowedMethods) { | ||
this.allowedMethods = allowedMethods; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the request headers that the origin domain may specify on the CORS request. | ||
* | ||
* @return the allowedHeaders value | ||
*/ | ||
public String allowedHeaders() { | ||
return this.allowedHeaders; | ||
} | ||
|
||
/** | ||
* Set the request headers that the origin domain may specify on the CORS request. | ||
* | ||
* @param allowedHeaders the allowedHeaders value to set | ||
* @return the CorsPolicy object itself. | ||
*/ | ||
public CorsPolicy withAllowedHeaders(String allowedHeaders) { | ||
this.allowedHeaders = allowedHeaders; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. | ||
* | ||
* @return the exposedHeaders value | ||
*/ | ||
public String exposedHeaders() { | ||
return this.exposedHeaders; | ||
} | ||
|
||
/** | ||
* Set the response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. | ||
* | ||
* @param exposedHeaders the exposedHeaders value to set | ||
* @return the CorsPolicy object itself. | ||
*/ | ||
public CorsPolicy withExposedHeaders(String exposedHeaders) { | ||
this.exposedHeaders = exposedHeaders; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the maximum amount time that a browser should cache the preflight OPTIONS request. | ||
* | ||
* @return the maxAgeInSeconds value | ||
*/ | ||
public Long maxAgeInSeconds() { | ||
return this.maxAgeInSeconds; | ||
} | ||
|
||
/** | ||
* Set the maximum amount time that a browser should cache the preflight OPTIONS request. | ||
* | ||
* @param maxAgeInSeconds the maxAgeInSeconds value to set | ||
* @return the CorsPolicy object itself. | ||
*/ | ||
public CorsPolicy withMaxAgeInSeconds(Long maxAgeInSeconds) { | ||
this.maxAgeInSeconds = maxAgeInSeconds; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.