Skip to content

Commit

Permalink
bugfix in api spec (#31695)
Browse files Browse the repository at this point in the history
  • Loading branch information
chantalolieman authored Jan 9, 2025
1 parent 18bcd0f commit 99c0e60
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"api-version": "2024-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
"geoReplication": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
}
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2032,19 +2032,32 @@
"type": "object",
"description": "Parameters for reconfiguring active geo-replication, of an existing database that was previously unlinked from a replication group.",
"required": [
"groupNickname",
"linkedDatabases"
"geoReplication"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name."
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
"geoReplication": {
"type": "object",
"description": "Properties to configure geo replication for this database.",
"x-ms-mutability": [
"read",
"create"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name.",
"x-ms-mutability": [
"read",
"create"
]
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"api-version": "2024-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
"geoReplication": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
}
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2033,19 +2033,32 @@
"type": "object",
"description": "Parameters for reconfiguring active geo-replication, of an existing database that was previously unlinked from a replication group.",
"required": [
"groupNickname",
"linkedDatabases"
"geoReplication"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name."
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
"geoReplication": {
"type": "object",
"description": "Properties to configure geo replication for this database.",
"x-ms-mutability": [
"read",
"create"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name.",
"x-ms-mutability": [
"read",
"create"
]
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"api-version": "2024-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
"geoReplication": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
}
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2555,19 +2555,32 @@
"type": "object",
"description": "Parameters for reconfiguring active geo-replication, of an existing database that was previously unlinked from a replication group.",
"required": [
"groupNickname",
"linkedDatabases"
"geoReplication"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name."
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
"geoReplication": {
"type": "object",
"description": "Properties to configure geo replication for this database.",
"x-ms-mutability": [
"read",
"create"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name.",
"x-ms-mutability": [
"read",
"create"
]
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"api-version": "2024-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
"geoReplication": {
"groupNickname": "groupName",
"linkedDatabases": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"
},
{
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
}
]
}
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2057,19 +2057,32 @@
"type": "object",
"description": "Parameters for reconfiguring active geo-replication, of an existing database that was previously unlinked from a replication group.",
"required": [
"groupNickname",
"linkedDatabases"
"geoReplication"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name."
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
"geoReplication": {
"type": "object",
"description": "Properties to configure geo replication for this database.",
"x-ms-mutability": [
"read",
"create"
],
"properties": {
"groupNickname": {
"type": "string",
"description": "The name of the group of linked database resources. This should match the existing replication group name.",
"x-ms-mutability": [
"read",
"create"
]
},
"linkedDatabases": {
"type": "array",
"description": "The resource IDs of the databases that are expected to be linked and included in the replication group. This parameter is used to validate that the linking is to the expected (unlinked) part of the replication group, if it is splintered.",
"items": {
"$ref": "#/definitions/LinkedDatabase"
}
}
}
}
}
Expand Down

0 comments on commit 99c0e60

Please sign in to comment.