Skip to content

Commit

Permalink
Generated from 381734f2f35fca286b0c8f70cd9313ff47fc772c
Browse files Browse the repository at this point in the history
changing ipAddressOrRange
  • Loading branch information
SDK Automation committed May 7, 2020
1 parent c30e9d9 commit 5ea1418
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 50 deletions.
30 changes: 18 additions & 12 deletions sdk/cosmosdb/arm-cosmosdb/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,9 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties {
*/
readonly databaseAccountOfferType?: DatabaseAccountOfferType;
/**
* Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges
* in CIDR form to be included as the allowed list of client IPs for a given database account. IP
* addresses/ranges must be comma separated and must not contain any spaces.
* List of IpRules.
*/
ipRangeFilter?: string;
ipRules?: string[];
/**
* Flag to indicate whether to enable/disable Virtual Network ACL rules.
*/
Expand Down Expand Up @@ -324,6 +322,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties {
* 'Disabled'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* Flag to indicate whether Free Tier is enabled.
*/
enableFreeTier?: boolean;
}

/**
Expand Down Expand Up @@ -1341,11 +1343,9 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper
*/
locations: Location[];
/**
* Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges
* in CIDR form to be included as the allowed list of client IPs for a given database account. IP
* addresses/ranges must be comma separated and must not contain any spaces.
* List of IpRules.
*/
ipRangeFilter?: string;
ipRules?: string[];
/**
* Flag to indicate whether to enable/disable Virtual Network ACL rules.
*/
Expand Down Expand Up @@ -1391,6 +1391,10 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper
* 'Disabled'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* Flag to indicate whether Free Tier is enabled.
*/
enableFreeTier?: boolean;
}

/**
Expand All @@ -1411,11 +1415,9 @@ export interface DatabaseAccountUpdateParameters {
*/
locations?: Location[];
/**
* Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges
* in CIDR form to be included as the allowed list of client IPs for a given database account. IP
* addresses/ranges must be comma separated and must not contain any spaces.
* List of IpRules.
*/
ipRangeFilter?: string;
ipRules?: string[];
/**
* Flag to indicate whether to enable/disable Virtual Network ACL rules.
*/
Expand Down Expand Up @@ -1461,6 +1463,10 @@ export interface DatabaseAccountUpdateParameters {
* 'Disabled'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* Flag to indicate whether Free Tier is enabled.
*/
enableFreeTier?: boolean;
}

/**
Expand Down
51 changes: 42 additions & 9 deletions sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,15 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = {
]
}
},
ipRangeFilter: {
serializedName: "properties.ipRangeFilter",
ipRules: {
serializedName: "properties.ipRules",
type: {
name: "String"
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
isVirtualNetworkFilterEnabled: {
Expand Down Expand Up @@ -535,6 +540,12 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = {
type: {
name: "String"
}
},
enableFreeTier: {
serializedName: "properties.enableFreeTier",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -2331,10 +2342,15 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = {
name: "String"
}
},
ipRangeFilter: {
serializedName: "properties.ipRangeFilter",
ipRules: {
serializedName: "properties.ipRules",
type: {
name: "String"
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
isVirtualNetworkFilterEnabled: {
Expand Down Expand Up @@ -2408,6 +2424,12 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = {
type: {
name: "String"
}
},
enableFreeTier: {
serializedName: "properties.enableFreeTier",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -2455,10 +2477,15 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = {
}
}
},
ipRangeFilter: {
serializedName: "properties.ipRangeFilter",
ipRules: {
serializedName: "properties.ipRules",
type: {
name: "String"
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
isVirtualNetworkFilterEnabled: {
Expand Down Expand Up @@ -2532,6 +2559,12 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = {
type: {
name: "String"
}
},
enableFreeTier: {
serializedName: "properties.enableFreeTier",
type: {
name: "Boolean"
}
}
}
}
Expand Down
17 changes: 1 addition & 16 deletions sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const apiVersion0: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-03-01',
defaultValue: '2020-04-01',
constraints: {
MinLength: 1
},
Expand All @@ -51,21 +51,6 @@ export const apiVersion0: msRest.OperationQueryParameter = {
}
};
export const apiVersion1: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2019-08-01',
constraints: {
MinLength: 1
},
type: {
name: "String"
}
}
};
export const apiVersion2: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
Expand Down
14 changes: 7 additions & 7 deletions sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const listByDatabaseAccountOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -281,7 +281,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.notebookWorkspaceName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -307,7 +307,7 @@ const listConnectionInfoOperationSpec: msRest.OperationSpec = {
Parameters.notebookWorkspaceName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -333,7 +333,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.notebookWorkspaceName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -366,7 +366,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.notebookWorkspaceName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -391,7 +391,7 @@ const beginRegenerateAuthTokenOperationSpec: msRest.OperationSpec = {
Parameters.notebookWorkspaceName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -416,7 +416,7 @@ const beginStartOperationSpec: msRest.OperationSpec = {
Parameters.notebookWorkspaceName
],
queryParameters: [
Parameters.apiVersion1
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const listByDatabaseAccountOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -202,7 +202,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.privateEndpointConnectionName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -228,7 +228,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.privateEndpointConnectionName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand Down Expand Up @@ -262,7 +262,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.privateEndpointConnectionName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const listByDatabaseAccountOperationSpec: msRest.OperationSpec = {
Parameters.accountName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand All @@ -132,7 +132,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.groupName
],
queryParameters: [
Parameters.apiVersion2
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
Expand Down

0 comments on commit 5ea1418

Please sign in to comment.