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] Add reboot parameters. #1223

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/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
11 changes: 10 additions & 1 deletion sdk/redis/arm-rediscache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export interface RedisInstanceDetails {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly shardId?: number;
/**
* Specifies whether the instance is a master node.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly isMaster?: boolean;
}

/**
Expand Down Expand Up @@ -385,11 +390,15 @@ export interface RedisRebootParameters {
* Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values
* include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'
*/
rebootType: RebootType;
rebootType?: RebootType;
/**
* If clustering is enabled, the ID of the shard to be rebooted.
*/
shardId?: number;
/**
* A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports.
*/
ports?: number[];
}

/**
Expand Down
19 changes: 18 additions & 1 deletion sdk/redis/arm-rediscache/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export const RedisInstanceDetails: msRest.CompositeMapper = {
type: {
name: "Number"
}
},
isMaster: {
readOnly: true,
serializedName: "isMaster",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -642,7 +649,6 @@ export const RedisRebootParameters: msRest.CompositeMapper = {
className: "RedisRebootParameters",
modelProperties: {
rebootType: {
required: true,
serializedName: "rebootType",
type: {
name: "String"
Expand All @@ -653,6 +659,17 @@ export const RedisRebootParameters: msRest.CompositeMapper = {
type: {
name: "Number"
}
},
ports: {
serializedName: "ports",
type: {
name: "Sequence",
element: {
type: {
name: "Number"
}
}
}
}
}
}
Expand Down