Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-rediscache] [Hub Generated] Review request for Microsoft.Cache to add version stable/2021-06-01 #5961

Draft
wants to merge 1 commit into
base: feature/v4
Choose a base branch
from
Draft
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 @@ -12,12 +12,14 @@ export {
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
ManagedServiceIdentity,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisFirewallRuleListResult,
Expand All @@ -29,5 +31,6 @@ export {
Resource,
ScheduleEntry,
Sku,
TrackedResource
TrackedResource,
UserAssignedIdentity
} from "../models/mappers";
159 changes: 146 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,75 @@ 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;
/**
* Preferred auth method to communicate to storage account used for data archive, specify SAS or
* ManagedIdentity, default value is SAS
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly preferredDataArchiveAuthMethod?: string;
/**
* Preferred auth method to communicate to storage account used for data persistence, specify SAS
* or ManagedIdentity, default value is SAS
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly preferredDataPersistenceAuthMethod?: string;
/**
* Describes unknown properties. The value of an unknown property can be of "any" type.
*/
[property: string]: any;
}

/**
* Redis cache access keys.
*/
Expand Down Expand Up @@ -171,6 +240,46 @@ export interface PrivateEndpointConnection extends Resource {
provisioningState?: PrivateEndpointConnectionProvisioningState;
}

/**
* User assigned identity properties
*/
export interface UserAssignedIdentity {
/**
* The principal ID of the assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The client ID of the assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly clientId?: string;
}

/**
* Managed service identity (system assigned and/or user assigned identities)
*/
export interface ManagedServiceIdentity {
/**
* The service principal ID of the system assigned identity. This property will only be provided
* for a system assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The tenant ID of the system assigned identity. This property will only be provided for a
* system assigned identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
/**
* Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
* UserAssigned'
*/
type: ManagedServiceIdentityType;
userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity };
}

/**
* Parameters supplied to the Create Redis operation.
*/
Expand All @@ -180,14 +289,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 +323,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 +338,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 @@ -244,6 +354,10 @@ export interface RedisCreateParameters {
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The identity of the resource.
*/
identity?: ManagedServiceIdentity;
}

/**
Expand All @@ -255,14 +369,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 +403,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 All @@ -300,6 +415,10 @@ export interface RedisUpdateParameters {
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The identity of the resource.
*/
identity?: ManagedServiceIdentity;
}

/**
Expand Down Expand Up @@ -371,14 +490,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 +524,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 +539,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 Expand Up @@ -470,6 +590,10 @@ export interface RedisResource extends TrackedResource {
* A list of availability zones denoting where the resource needs to come from.
*/
zones?: string[];
/**
* The identity of the resource.
*/
identity?: ManagedServiceIdentity;
}

/**
Expand Down Expand Up @@ -996,6 +1120,15 @@ export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'R
*/
export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed';

/**
* Defines values for ManagedServiceIdentityType.
* Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
* UserAssigned'
* @readonly
* @enum {string}
*/
export type ManagedServiceIdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned';

/**
* Defines values for RedisKeyType.
* Possible values include: 'Primary', 'Secondary'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ export {
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
ManagedServiceIdentity,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
RedisAccessKeys,
RedisCommonPropertiesRedisConfiguration,
RedisFirewallRule,
RedisFirewallRuleCreateParameters,
RedisInstanceDetails,
Expand All @@ -30,5 +32,6 @@ export {
Resource,
ScheduleEntry,
Sku,
TrackedResource
TrackedResource,
UserAssignedIdentity
} from "../models/mappers";
Loading