Skip to content

Commit

Permalink
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Browse files Browse the repository at this point in the history
Merge pull request #6 from Khushboo-Baheti/master

merge
  • Loading branch information
SDK Automation committed Feb 24, 2020
1 parent 0453ec6 commit 84191fc
Show file tree
Hide file tree
Showing 13 changed files with 299 additions and 48 deletions.
2 changes: 1 addition & 1 deletion sdk/cosmosdb/arm-cosmosdb/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
export {
ARMProxyResource,
ARMResourceProperties,
AutopilotSettingsResource,
AutoUpgradePolicyResource,
AzureEntityResource,
BaseResource,
Capability,
Expand All @@ -31,6 +33,7 @@ export {
ConflictResolutionPolicy,
ConsistencyPolicy,
ContainerPartitionKey,
CreateUpdateOptions,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountGetResults,
ExcludedPath,
Expand Down Expand Up @@ -89,6 +92,7 @@ export {
TableGetPropertiesResource,
TableGetResults,
TableResource,
ThroughputPolicyResource,
ThroughputSettingsGetPropertiesResource,
ThroughputSettingsGetResults,
ThroughputSettingsResource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
export {
ARMProxyResource,
ARMResourceProperties,
AutopilotSettingsResource,
AutoUpgradePolicyResource,
AzureEntityResource,
BaseResource,
Capability,
Expand All @@ -29,6 +31,7 @@ export {
ConflictResolutionPolicy,
ConsistencyPolicy,
ContainerPartitionKey,
CreateUpdateOptions,
DatabaseAccountConnectionString,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountGetResults,
Expand Down Expand Up @@ -107,6 +110,7 @@ export {
TableGetPropertiesResource,
TableGetResults,
TableResource,
ThroughputPolicyResource,
ThroughputSettingsGetPropertiesResource,
ThroughputSettingsGetResults,
ThroughputSettingsResource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
export {
ARMProxyResource,
ARMResourceProperties,
AutopilotSettingsResource,
AutoUpgradePolicyResource,
AzureEntityResource,
BaseResource,
Capability,
Expand All @@ -29,6 +31,7 @@ export {
ConflictResolutionPolicy,
ConsistencyPolicy,
ContainerPartitionKey,
CreateUpdateOptions,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountGetResults,
ExcludedPath,
Expand Down Expand Up @@ -89,6 +92,7 @@ export {
TableGetPropertiesResource,
TableGetResults,
TableResource,
ThroughputPolicyResource,
ThroughputSettingsGetPropertiesResource,
ThroughputSettingsGetResults,
ThroughputSettingsResource,
Expand Down
120 changes: 103 additions & 17 deletions sdk/cosmosdb/arm-cosmosdb/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties {
* keys
*/
disableKeyBasedMetadataWriteAccess?: boolean;
/**
* The URI of the key vault
*/
keyVaultKeyUri?: string;
}

/**
Expand Down Expand Up @@ -1059,14 +1063,65 @@ export interface ExtendedResourceProperties {
readonly _etag?: string;
}

/**
* Cosmos DB resource throughput policy
*/
export interface ThroughputPolicyResource {
/**
* Determines whether the ThroughputPolicy is active or not
*/
isEnabled?: boolean;
/**
* Represents the percentage by which throughput can increase every time throughput policy kicks
* in.
*/
incrementPercent?: number;
}

/**
* Cosmos DB resource auto-upgrade policy
*/
export interface AutoUpgradePolicyResource {
/**
* Represents throughput policy which service must adhere to for auto-upgrade
*/
throughputPolicy?: ThroughputPolicyResource;
}

/**
* Cosmos DB autopilot settings object
*/
export interface AutopilotSettingsResource {
/**
* Represents max throughput an autopilot container can operate at.
*/
maxThroughput: number;
/**
* Cosmos DB resource auto-upgrade policy
*/
autoUpgradePolicy?: AutoUpgradePolicyResource;
/**
* Represents target max throughput an autopilot container should operate at once offer is no
* longer in pending state.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly targetMaxThroughput?: number;
}

/**
* An interface representing ThroughputSettingsGetPropertiesResource.
*/
export interface ThroughputSettingsGetPropertiesResource {
/**
* Value of the Cosmos DB resource throughput
* Value of the Cosmos DB resource throughput. Either throughput is required or autopilotSettings
* is required, but not both.
*/
throughput: number;
throughput?: number;
/**
* Cosmos DB resource for Autopilot settings. Either throughput is required or autopilotSettings
* is required, but not both.
*/
autopilotSettings?: AutopilotSettingsResource;
/**
* The minimum throughput of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -1162,6 +1217,10 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper
* keys
*/
disableKeyBasedMetadataWriteAccess?: boolean;
/**
* The URI of the key vault
*/
keyVaultKeyUri?: string;
}

/**
Expand Down Expand Up @@ -1223,6 +1282,10 @@ export interface DatabaseAccountUpdateParameters {
* keys
*/
disableKeyBasedMetadataWriteAccess?: boolean;
/**
* The URI of the key vault
*/
keyVaultKeyUri?: string;
}

/**
Expand Down Expand Up @@ -1295,13 +1358,20 @@ export interface DatabaseAccountRegenerateKeyParameters {
}

/**
* Cosmos DB resource throughput object
* Cosmos DB resource throughput object. Either throughput is required or autopilotSettings is
* required, but not both.
*/
export interface ThroughputSettingsResource {
/**
* Value of the Cosmos DB resource throughput
* Value of the Cosmos DB resource throughput. Either throughput is required or autopilotSettings
* is required, but not both.
*/
throughput: number;
throughput?: number;
/**
* Cosmos DB resource for Autopilot settings. Either throughput is required or autopilotSettings
* is required, but not both.
*/
autopilotSettings?: AutopilotSettingsResource;
/**
* The minimum throughput of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -1334,6 +1404,22 @@ export interface SqlDatabaseResource {
id: string;
}

/**
* CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are
* "If-Match", "If-None-Match", "Session-Token" and "Throughput"
*/
export interface CreateUpdateOptions {
/**
* Request Units per second. For example, "throughput": "10000".
*/
throughput?: string;
/**
* Describes unknown properties. The value of an unknown property MUST be of type "string". Due
* to valid TS constraints we have modeled this as a union of `string | any`.
*/
[property: string]: string | any;
}

/**
* Parameters to create and update Cosmos DB SQL database.
*/
Expand All @@ -1346,7 +1432,7 @@ export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1394,7 +1480,7 @@ export interface SqlContainerCreateUpdateParameters extends ARMResourcePropertie
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1423,7 +1509,7 @@ export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourcePro
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1452,7 +1538,7 @@ export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourc
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1490,7 +1576,7 @@ export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand All @@ -1515,7 +1601,7 @@ export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProper
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1548,7 +1634,7 @@ export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProp
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand All @@ -1573,7 +1659,7 @@ export interface TableCreateUpdateParameters extends ARMResourceProperties {
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand All @@ -1598,7 +1684,7 @@ export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProp
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1631,7 +1717,7 @@ export interface CassandraTableCreateUpdateParameters extends ARMResourcePropert
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand All @@ -1656,7 +1742,7 @@ export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProper
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down Expand Up @@ -1704,7 +1790,7 @@ export interface GremlinGraphCreateUpdateParameters extends ARMResourcePropertie
* A key-value pair of options to be applied for the request. This corresponds to the headers
* sent with the request.
*/
options: { [propertyName: string]: string };
options: CreateUpdateOptions;
}

/**
Expand Down
Loading

0 comments on commit 84191fc

Please sign in to comment.