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

[Hub Generated] Review request for Microsoft.RecoveryServices: contracts and examples for the VaultSettings APIs. #6006

Merged
merged 1 commit into from
May 20, 2019
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"vaultSettingName": "default",
"api-version": "2018-07-10",
"resourceName": "vault1",
"resourceGroupName": "resourceGroupPS1",
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a",
"input": {
"properties": {
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
}
}
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationVaultSettings/default",
"name": "default",
"type": "Microsoft.RecoveryServices/vaults/replicationVaultSettings",
"properties": {
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"vaultSettingName": "default",
"api-version": "2018-07-10",
"resourceName": "vault1",
"resourceGroupName": "resourceGroupPS1",
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a"
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationVaultSettings/default",
"name": "default",
"type": "Microsoft.RecoveryServices/vaults/replicationVaultSettings",
"properties": {
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2018-07-10",
"resourceName": "vault1",
"resourceGroupName": "resourceGroupPS1",
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationVaultSettings/default",
"name": "default",
"type": "Microsoft.RecoveryServices/vaults/replicationVaultSettings",
"properties": {
"migrationSolutionId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7112,6 +7112,153 @@
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings": {
"get": {
"tags": [
"ReplicationVaultSetting"
],
"summary": "Gets the list of vault setting.",
"description": "Gets the list of vault setting. This includes the Migration Hub connection settings.",
"operationId": "ReplicationVaultSetting_List",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ResourceName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VaultSettingCollection"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Gets the list of vault setting.": {
"$ref": "./examples/ReplicationVaultSetting_List.json"
}
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationVaultSettings/{vaultSettingName}": {
"get": {
"tags": [
"ReplicationVaultSetting"
],
"summary": "Gets the vault setting.",
"description": "Gets the vault setting. This includes the Migration Hub connection settings.",
"operationId": "ReplicationVaultSetting_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ResourceName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "vaultSettingName",
"in": "path",
"description": "Vault setting name.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VaultSetting"
}
}
},
"x-ms-examples": {
"Gets the vault setting.": {
"$ref": "./examples/ReplicationVaultSetting_Get.json"
}
}
},
"put": {
"tags": [
"ReplicationVaultSetting"
],
"summary": "Updates vault setting. A vault setting object is a singleton per vault and it is always present by default.",
"description": "The operation to configure vault setting.",
"operationId": "ReplicationVaultSetting_Create",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/ResourceName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "vaultSettingName",
"in": "path",
"description": "Vault setting name.",
"required": true,
"type": "string"
},
{
"name": "input",
"in": "body",
"description": "Vault setting creation input.",
"required": true,
"schema": {
"$ref": "#/definitions/VaultSettingCreationInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VaultSetting"
}
}
},
"x-ms-examples": {
"Updates vault setting. A vault setting object is a singleton per vault and it is always present by default.": {
"$ref": "./examples/ReplicationVaultSetting_Create.json"
}
}
}
},
"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationvCenters": {
"get": {
"tags": [
Expand Down Expand Up @@ -16164,6 +16311,74 @@
}
}
},
"VaultSetting": {
"description": "Vault setting.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/VaultSettingProperties",
"description": "The vault setting properties."
}
}
},
"VaultSettingCollection": {
"description": "Vault setting collection.",
"type": "object",
"properties": {
"value": {
"description": "The list of vault setting.",
"type": "array",
"items": {
"$ref": "#/definitions/VaultSetting"
}
},
"nextLink": {
"description": "The value of next link.",
"type": "string"
}
}
},
"VaultSettingCreationInput": {
"description": "Input to create vault setting.",
"required": [
"properties"
],
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/VaultSettingCreationInputProperties",
"description": "Vault setting creation input properties."
}
}
},
"VaultSettingCreationInputProperties": {
"description": "Input to create vault setting.",
"required": [
"migrationSolutionId"
],
"type": "object",
"properties": {
"migrationSolutionId": {
"description": "The migration solution Id.",
"type": "string"
}
}
},
"VaultSettingProperties": {
"description": "Vault setting properties.",
"type": "object",
"properties": {
"migrationSolutionId": {
"description": "The migration solution ARM Id.",
"type": "string"
}
}
},
"VCenter": {
"description": "vCenter definition.",
"type": "object",
Expand Down Expand Up @@ -17384,6 +17599,11 @@
"description": "The service endpoint.",
"type": "string",
"readOnly": true
},
"serviceResourceId": {
"description": "The service resource Id.",
"type": "string",
"readOnly": true
}
},
"x-ms-discriminator-value": "VMwareV2"
Expand Down