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
2 changes: 1 addition & 1 deletion sdk/redis/arm-rediscache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/redis/arm-rediscache",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/redis/arm-rediscache",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisFirewallRuleListResult,
Expand Down
87 changes: 74 additions & 13 deletions sdk/redis/arm-rediscache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,64 @@ export interface Sku {
capacity: number;
}

/**
* All Redis Settings. Few possible keys:
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*/
export interface RedisCommonPropertiesRedisConfiguration {
/**
* Specifies whether the rdb backup is enabled
*/
rdbBackupEnabled?: string;
/**
* Specifies the frequency for creating rdb backup
*/
rdbBackupFrequency?: string;
/**
* Specifies the maximum number of snapshots for rdb backup
*/
rdbBackupMaxSnapshotCount?: string;
/**
* The storage account connection string for storing rdb file
*/
rdbStorageConnectionString?: string;
/**
* First storage account connection string
*/
aofStorageConnectionString0?: string;
/**
* Second storage account connection string
*/
aofStorageConnectionString1?: string;
/**
* Value in megabytes reserved for fragmentation per shard
*/
maxfragmentationmemoryReserved?: string;
/**
* The eviction strategy used when your data won't fit within its memory limit.
*/
maxmemoryPolicy?: string;
/**
* Value in megabytes reserved for non-cache usage per shard e.g. failover.
*/
maxmemoryReserved?: string;
/**
* Value in megabytes reserved for non-cache usage per shard e.g. failover.
*/
maxmemoryDelta?: string;
/**
* The max clients config
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly maxclients?: 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;
}

/**
* Redis cache access keys.
*/
Expand Down Expand Up @@ -180,14 +238,14 @@ export interface RedisCreateParameters {
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*/
redisConfiguration?: { [propertyName: string]: string };
redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
/**
* Redis version. Only major version will be used in PUT/PATCH request with current valid values:
* (4, 6)
*/
redisVersion?: string;
/**
* Specifies whether the non-ssl Redis server port (6379) is enabled.
* Specifies whether the non-ssl Redis server port (6379) is enabled. Default value: false.
*/
enableNonSslPort?: boolean;
/**
Expand All @@ -214,7 +272,8 @@ export interface RedisCreateParameters {
/**
* Whether or not public endpoint access is allowed for this cache. Value is optional but if
* passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive
* access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled'
* access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled'.
* Default value: 'Enabled'.
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
Expand All @@ -228,8 +287,8 @@ export interface RedisCreateParameters {
*/
subnetId?: string;
/**
* Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual
* Network.
* Static IP address. Optionally, may be specified when deploying a Redis cache inside an
* existing Azure Virtual Network; auto assigned by default.
*/
staticIP?: string;
/**
Expand All @@ -255,14 +314,14 @@ export interface RedisUpdateParameters {
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*/
redisConfiguration?: { [propertyName: string]: string };
redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
/**
* Redis version. Only major version will be used in PUT/PATCH request with current valid values:
* (4, 6)
*/
redisVersion?: string;
/**
* Specifies whether the non-ssl Redis server port (6379) is enabled.
* Specifies whether the non-ssl Redis server port (6379) is enabled. Default value: false.
*/
enableNonSslPort?: boolean;
/**
Expand All @@ -289,7 +348,8 @@ export interface RedisUpdateParameters {
/**
* Whether or not public endpoint access is allowed for this cache. Value is optional but if
* passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive
* access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled'
* access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled'.
* Default value: 'Enabled'.
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
Expand Down Expand Up @@ -371,14 +431,14 @@ export interface RedisResource extends TrackedResource {
* rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
* etc.
*/
redisConfiguration?: { [propertyName: string]: string };
redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
/**
* Redis version. Only major version will be used in PUT/PATCH request with current valid values:
* (4, 6)
*/
redisVersion?: string;
/**
* Specifies whether the non-ssl Redis server port (6379) is enabled.
* Specifies whether the non-ssl Redis server port (6379) is enabled. Default value: false.
*/
enableNonSslPort?: boolean;
/**
Expand All @@ -405,7 +465,8 @@ export interface RedisResource extends TrackedResource {
/**
* Whether or not public endpoint access is allowed for this cache. Value is optional but if
* passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive
* access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled'
* access method. Default value is 'Enabled'. Possible values include: 'Enabled', 'Disabled'.
* Default value: 'Enabled'.
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
Expand All @@ -419,8 +480,8 @@ export interface RedisResource extends TrackedResource {
*/
subnetId?: string;
/**
* Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual
* Network.
* Static IP address. Optionally, may be specified when deploying a Redis cache inside an
* existing Azure Virtual Network; auto assigned by default.
*/
staticIP?: string;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisInstanceDetails,
Expand Down
103 changes: 97 additions & 6 deletions sdk/redis/arm-rediscache/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,88 @@ export const Sku: msRest.CompositeMapper = {
}
};

export const RedisCommonPropertiesRedisConfiguration: msRest.CompositeMapper = {
serializedName: "RedisCommonProperties_redisConfiguration",
type: {
name: "Composite",
className: "RedisCommonPropertiesRedisConfiguration",
modelProperties: {
rdbBackupEnabled: {
serializedName: "rdb-backup-enabled",
type: {
name: "String"
}
},
rdbBackupFrequency: {
serializedName: "rdb-backup-frequency",
type: {
name: "String"
}
},
rdbBackupMaxSnapshotCount: {
serializedName: "rdb-backup-max-snapshot-count",
type: {
name: "String"
}
},
rdbStorageConnectionString: {
serializedName: "rdb-storage-connection-string",
type: {
name: "String"
}
},
aofStorageConnectionString0: {
serializedName: "aof-storage-connection-string-0",
type: {
name: "String"
}
},
aofStorageConnectionString1: {
serializedName: "aof-storage-connection-string-1",
type: {
name: "String"
}
},
maxfragmentationmemoryReserved: {
serializedName: "maxfragmentationmemory-reserved",
type: {
name: "String"
}
},
maxmemoryPolicy: {
serializedName: "maxmemory-policy",
type: {
name: "String"
}
},
maxmemoryReserved: {
serializedName: "maxmemory-reserved",
type: {
name: "String"
}
},
maxmemoryDelta: {
serializedName: "maxmemory-delta",
type: {
name: "String"
}
},
maxclients: {
readOnly: true,
serializedName: "maxclients",
type: {
name: "String"
}
}
},
additionalProperties: {
type: {
name: "String"
}
}
}
};

export const RedisAccessKeys: msRest.CompositeMapper = {
serializedName: "RedisAccessKeys",
type: {
Expand Down Expand Up @@ -253,8 +335,9 @@ export const RedisCreateParameters: msRest.CompositeMapper = {
redisConfiguration: {
serializedName: "properties.redisConfiguration",
type: {
name: "Dictionary",
value: {
name: "Composite",
className: "RedisCommonPropertiesRedisConfiguration",
additionalProperties: {
type: {
name: "String"
}
Expand All @@ -269,6 +352,7 @@ export const RedisCreateParameters: msRest.CompositeMapper = {
},
enableNonSslPort: {
serializedName: "properties.enableNonSslPort",
defaultValue: false,
type: {
name: "Boolean"
}
Expand Down Expand Up @@ -310,6 +394,7 @@ export const RedisCreateParameters: msRest.CompositeMapper = {
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
defaultValue: 'Enabled',
type: {
name: "String"
}
Expand Down Expand Up @@ -382,8 +467,9 @@ export const RedisUpdateParameters: msRest.CompositeMapper = {
redisConfiguration: {
serializedName: "properties.redisConfiguration",
type: {
name: "Dictionary",
value: {
name: "Composite",
className: "RedisCommonPropertiesRedisConfiguration",
additionalProperties: {
type: {
name: "String"
}
Expand All @@ -398,6 +484,7 @@ export const RedisUpdateParameters: msRest.CompositeMapper = {
},
enableNonSslPort: {
serializedName: "properties.enableNonSslPort",
defaultValue: false,
type: {
name: "Boolean"
}
Expand Down Expand Up @@ -439,6 +526,7 @@ export const RedisUpdateParameters: msRest.CompositeMapper = {
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
defaultValue: 'Enabled',
type: {
name: "String"
}
Expand Down Expand Up @@ -575,8 +663,9 @@ export const RedisResource: msRest.CompositeMapper = {
redisConfiguration: {
serializedName: "properties.redisConfiguration",
type: {
name: "Dictionary",
value: {
name: "Composite",
className: "RedisCommonPropertiesRedisConfiguration",
additionalProperties: {
type: {
name: "String"
}
Expand All @@ -591,6 +680,7 @@ export const RedisResource: msRest.CompositeMapper = {
},
enableNonSslPort: {
serializedName: "properties.enableNonSslPort",
defaultValue: false,
type: {
name: "Boolean"
}
Expand Down Expand Up @@ -632,6 +722,7 @@ export const RedisResource: msRest.CompositeMapper = {
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
defaultValue: 'Enabled',
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisInstanceDetails,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisInstanceDetails,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisInstanceDetails,
Expand Down
1 change: 1 addition & 0 deletions sdk/redis/arm-rediscache/src/models/redisMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisCreateParameters,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
Expand Down