Skip to content
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
Expand Up @@ -18,6 +18,155 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig": {
"get": {
"tags": [
"BackupResourceVaultConfigs"
],
"description": "Fetches resource vault config.",
"operationId": "BackupResourceVaultConfigs_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/VaultName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/NewErrorResponse"
}
}
},
"x-ms-examples": {
"Get Vault Security Config": {
"$ref": "./examples/Common/BackupResourceVaultConfigs_Get.json"
}
}
},
"patch": {
"tags": [
"BackupResourceVaultConfigs"
],
"description": "Updates vault security config.",
"operationId": "BackupResourceVaultConfigs_Update",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/VaultName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "parameters",
"in": "body",
"description": "resource config request",
"required": true,
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/NewErrorResponse"
}
}
},
"x-ms-examples": {
"Update Vault Security Config": {
"$ref": "./examples/Common/BackupResourceVaultConfigs_Patch.json"
}
}
},
"put": {
"tags": [
"BackupResourceVaultConfigs"
],
"description": "Updates vault security config.",
"operationId": "BackupResourceVaultConfigs_Put",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "#/parameters/VaultName"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"name": "parameters",
"in": "body",
"description": "resource config request",
"required": true,
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BackupResourceVaultConfigResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/NewErrorResponse"
}
}
},
"x-ms-examples": {
"Update Vault Security Config": {
"$ref": "./examples/Common/BackupResourceVaultConfigs_Put.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig": {
"get": {
"tags": [
Expand Down Expand Up @@ -7042,6 +7191,95 @@
}
}
},
"BackupResourceVaultConfigResource": {
"description": "Backup resource vault config details.",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/BackupResourceVaultConfig",
"description": "BackupResourceVaultConfigResource properties"
}
}
},
"BackupResourceVaultConfig": {
"description": "Backup resource vault config details.",
"type": "object",
"properties": {
"storageModelType": {
"description": "Storage type.",
"enum": [
"Invalid",
"GeoRedundant",
"LocallyRedundant",
"ZoneRedundant",
"ReadAccessGeoZoneRedundant"
],
"type": "string",
"x-ms-enum": {
"name": "StorageType",
"modelAsString": true
}
},
"storageType": {
"description": "Storage type.",
"enum": [
"Invalid",
"GeoRedundant",
"LocallyRedundant",
"ZoneRedundant",
"ReadAccessGeoZoneRedundant"
],
"type": "string",
"x-ms-enum": {
"name": "StorageType",
"modelAsString": true
}
},
"storageTypeState": {
"description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.",
"enum": [
"Invalid",
"Locked",
"Unlocked"
],
"type": "string",
"x-ms-enum": {
"name": "StorageTypeState",
"modelAsString": true
}
},
"enhancedSecurityState": {
"description": "Enabled or Disabled.",
"enum": [
"Invalid",
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "EnhancedSecurityState",
"modelAsString": true
}
},
"softDeleteFeatureState": {
"description": "Soft Delete feature state",
"enum": [
"Invalid",
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "SoftDeleteFeatureState",
"modelAsString": true
}
}
}
},
"YearlyRetentionSchedule": {
"description": "Yearly retention schedule.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "SwaggerTestRg",
"vaultName": "SwaggerTest",
"api-version": "2019-06-15"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
"name": "vaultconfig",
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "SwaggerTestRg",
"vaultName": "SwaggerTest",
"api-version": "2019-06-15",
"parameters": {
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
"name": "vaultconfig",
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "SwaggerTestRg",
"vaultName": "SwaggerTest",
"api-version": "2019-06-15",
"parameters": {
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/SwaggerTest/backupconfig/vaultconfig",
"name": "vaultconfig",
"type": "Microsoft.RecoveryServices/vaults/backupconfig",
"properties": {
"enhancedSecurityState": "Enabled",
"softDeleteFeatureState": "Enabled"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ These settings apply only when `--tag=package-2017-07` is specified on the comma

``` yaml $(tag) == 'package-2017-07'
input-file:
- Microsoft.RecoveryServices/stable/2018-12-20/bms.json
- Microsoft.RecoveryServices/stable/2017-07-01/bms.json
- Microsoft.RecoveryServices/stable/2016-12-01/bms.json
- Microsoft.RecoveryServices/stable/2016-08-10/operations.json
Expand Down