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
64 changes: 61 additions & 3 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,7 +238,7 @@ 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)
Expand Down Expand Up @@ -255,7 +313,7 @@ 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)
Expand Down Expand Up @@ -371,7 +429,7 @@ 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)
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
97 changes: 91 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 Down Expand Up @@ -382,8 +465,9 @@ export const RedisUpdateParameters: msRest.CompositeMapper = {
redisConfiguration: {
serializedName: "properties.redisConfiguration",
type: {
name: "Dictionary",
value: {
name: "Composite",
className: "RedisCommonPropertiesRedisConfiguration",
additionalProperties: {
type: {
name: "String"
}
Expand Down Expand Up @@ -575,8 +659,9 @@ export const RedisResource: msRest.CompositeMapper = {
redisConfiguration: {
serializedName: "properties.redisConfiguration",
type: {
name: "Dictionary",
value: {
name: "Composite",
className: "RedisCommonPropertiesRedisConfiguration",
additionalProperties: {
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