Release 20200108 (#2744)
This commit is contained in:
Родитель
71fd44fd6a
Коммит
2c7e92d6ce
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure
|
||||
VERSION = '0.49.1'
|
||||
VERSION = '0.50.0'
|
||||
end
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"management":[
|
||||
"azure_mgmt_netapp"
|
||||
"azure_mgmt_recovery_services_backup"
|
||||
],
|
||||
"rollup":[
|
||||
"azure_sdk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"rollup": {
|
||||
"azure_sdk": "0.49.1"
|
||||
"azure_sdk": "0.50.0"
|
||||
},
|
||||
"data": {
|
||||
"azure_cognitiveservices_anomalydetector": "0.17.0",
|
||||
|
@ -109,7 +109,7 @@
|
|||
"azure_mgmt_powerbi_dedicated": "0.17.0",
|
||||
"azure_mgmt_privatedns": "0.17.1",
|
||||
"azure_mgmt_recovery_services": "0.17.3",
|
||||
"azure_mgmt_recovery_services_backup": "0.17.2",
|
||||
"azure_mgmt_recovery_services_backup": "0.18.0",
|
||||
"azure_mgmt_recovery_services_site_recovery": "0.17.2",
|
||||
"azure_mgmt_redis": "0.17.3",
|
||||
"azure_mgmt_relay": "0.17.2",
|
||||
|
|
|
@ -2172,6 +2172,20 @@
|
|||
}
|
||||
},
|
||||
"azure_mgmt_recovery_services_backup": {
|
||||
"azure_mgmt_recovery_services_backup_2019_06_15": {
|
||||
"input-file": [
|
||||
"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5a9e1dbaa54a34dfa7557bf9215da13b7b7df898/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2019-06-15/bms.json"
|
||||
],
|
||||
"namespace": "Azure::RecoveryServicesBackup::Mgmt::V2019_06_15",
|
||||
"title": "RecoveryServicesBackupClient"
|
||||
},
|
||||
"azure_mgmt_recovery_services_backup_2019_05_13": {
|
||||
"input-file": [
|
||||
"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5a9e1dbaa54a34dfa7557bf9215da13b7b7df898/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2019-05-13/bms.json"
|
||||
],
|
||||
"namespace": "Azure::RecoveryServicesBackup::Mgmt::V2019_05_13",
|
||||
"title": "RecoveryServicesBackupClient"
|
||||
},
|
||||
"azure_mgmt_recovery_services_backup_2017_07_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/recoveryservicesbackup/resource-manager/readme.md",
|
||||
"namespace": "Azure::RecoveryServicesBackup::Mgmt::V2017_07_01",
|
||||
|
|
|
@ -639,7 +639,9 @@
|
|||
"management": {
|
||||
"2016-08-10": ["*"],
|
||||
"2016-12-01": ["*"],
|
||||
"2017-07-01": ["*"]
|
||||
"2017-07-01": ["*"],
|
||||
"2019-05-13": ["*"],
|
||||
"2019-06-15": ["*"]
|
||||
}
|
||||
},
|
||||
"Microsoft.RecoveryServicesSiteRecovery": {
|
||||
|
@ -2296,7 +2298,9 @@
|
|||
"management": {
|
||||
"2016-08-10": ["*"],
|
||||
"2016-12-01": ["*"],
|
||||
"2017-07-01": ["*"]
|
||||
"2017-07-01": ["*"],
|
||||
"2019-05-13": ["*"],
|
||||
"2019-06-15": ["*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -118,6 +118,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -209,6 +211,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -121,6 +121,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -119,6 +119,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -140,6 +140,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -107,6 +107,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -136,6 +136,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -268,6 +270,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -109,6 +109,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -107,6 +107,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -110,6 +110,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -123,6 +123,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -235,6 +237,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -323,6 +327,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -133,6 +133,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -227,6 +229,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -125,6 +125,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -137,6 +137,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -124,6 +124,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -246,6 +248,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -378,6 +382,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -483,6 +489,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -564,6 +572,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -118,6 +118,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -113,6 +113,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -117,6 +117,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -227,6 +229,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -331,6 +335,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -419,6 +425,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -116,6 +116,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -232,6 +234,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -336,6 +340,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -433,6 +439,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -114,6 +114,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -126,6 +126,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -134,6 +134,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -253,6 +255,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -217,7 +217,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_recovery_services_backup'
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
sdk_information = "#{sdk_information}/0.18.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -141,6 +141,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -90,6 +90,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -178,6 +180,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -125,7 +125,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_recovery_services_backup'
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
sdk_information = "#{sdk_information}/0.18.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -112,6 +112,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -217,6 +219,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -308,6 +312,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -124,6 +124,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -122,6 +122,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -115,6 +115,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -209,6 +211,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -106,6 +106,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -194,6 +196,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -103,6 +103,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -208,6 +210,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -103,6 +103,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -209,6 +211,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -123,6 +123,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -217,6 +219,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -137,6 +137,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -153,6 +153,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -274,6 +276,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -112,6 +112,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -116,6 +116,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -110,6 +110,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -198,6 +200,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -128,6 +128,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -143,6 +143,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -130,6 +130,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -259,6 +261,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -364,6 +368,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -121,6 +121,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -116,6 +116,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -117,6 +117,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -240,6 +242,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -354,6 +358,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -464,6 +470,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
@ -564,6 +572,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -116,6 +116,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -232,6 +234,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -336,6 +340,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -117,6 +117,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -129,6 +129,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -124,6 +124,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -250,6 +252,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -338,6 +342,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -229,7 +229,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_recovery_services_backup'
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
sdk_information = "#{sdk_information}/0.18.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -141,6 +141,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -103,6 +103,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -109,6 +109,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -197,6 +199,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -112,6 +112,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -206,6 +208,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -109,6 +109,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -197,6 +199,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -107,6 +107,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -109,6 +109,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -116,6 +116,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -110,6 +110,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -107,6 +107,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -108,6 +108,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
|
|
@ -120,6 +120,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -119,6 +119,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
@ -236,6 +238,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
|
|
|
@ -168,7 +168,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_recovery_services_backup'
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
sdk_information = "#{sdk_information}/0.18.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,208 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
require 'uri'
|
||||
require 'cgi'
|
||||
require 'date'
|
||||
require 'json'
|
||||
require 'base64'
|
||||
require 'erb'
|
||||
require 'securerandom'
|
||||
require 'time'
|
||||
require 'timeliness'
|
||||
require 'faraday'
|
||||
require 'faraday-cookie_jar'
|
||||
require 'concurrent'
|
||||
require 'ms_rest'
|
||||
require '2019-05-13/generated/azure_mgmt_recovery_services_backup/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
autoload :BackupResourceVaultConfigs, '2019-05-13/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb'
|
||||
autoload :ProtectedItems, '2019-05-13/generated/azure_mgmt_recovery_services_backup/protected_items.rb'
|
||||
autoload :ProtectedItemOperationResults, '2019-05-13/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb'
|
||||
autoload :RecoveryPoints, '2019-05-13/generated/azure_mgmt_recovery_services_backup/recovery_points.rb'
|
||||
autoload :Restores, '2019-05-13/generated/azure_mgmt_recovery_services_backup/restores.rb'
|
||||
autoload :BackupPolicies, '2019-05-13/generated/azure_mgmt_recovery_services_backup/backup_policies.rb'
|
||||
autoload :ProtectionPolicies, '2019-05-13/generated/azure_mgmt_recovery_services_backup/protection_policies.rb'
|
||||
autoload :ProtectionPolicyOperationResults, '2019-05-13/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb'
|
||||
autoload :BackupJobs, '2019-05-13/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb'
|
||||
autoload :JobDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/job_details.rb'
|
||||
autoload :JobCancellations, '2019-05-13/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb'
|
||||
autoload :JobOperationResults, '2019-05-13/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb'
|
||||
autoload :ExportJobsOperationResults, '2019-05-13/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb'
|
||||
autoload :Jobs, '2019-05-13/generated/azure_mgmt_recovery_services_backup/jobs.rb'
|
||||
autoload :BackupProtectedItems, '2019-05-13/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb'
|
||||
autoload :Operation, '2019-05-13/generated/azure_mgmt_recovery_services_backup/operation.rb'
|
||||
autoload :RecoveryServicesBackupClient, '2019-05-13/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb'
|
||||
|
||||
module Models
|
||||
autoload :DailyRetentionFormat, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb'
|
||||
autoload :RetentionDuration, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb'
|
||||
autoload :MabJobExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb'
|
||||
autoload :MabJobTaskDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb'
|
||||
autoload :RestoreFileSpecs, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/restore_file_specs.rb'
|
||||
autoload :AzureWorkloadErrorInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_error_info.rb'
|
||||
autoload :ValidateOperationsResponse, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/validate_operations_response.rb'
|
||||
autoload :AzureWorkloadJobTaskDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_job_task_details.rb'
|
||||
autoload :SchedulePolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb'
|
||||
autoload :AzureWorkloadJobExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_job_extended_info.rb'
|
||||
autoload :SubProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb'
|
||||
autoload :MabFileFolderProtectedItemExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb'
|
||||
autoload :ValidateOperationRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/validate_operation_request.rb'
|
||||
autoload :PointInTimeRange, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/point_in_time_range.rb'
|
||||
autoload :ResourceList, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb'
|
||||
autoload :MabErrorInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb'
|
||||
autoload :AzureIaaSVMHealthDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb'
|
||||
autoload :YearlyRetentionSchedule, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb'
|
||||
autoload :AzureIaaSVMJobExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb'
|
||||
autoload :MonthlyRetentionSchedule, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb'
|
||||
autoload :AzureIaaSVMProtectedItemExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb'
|
||||
autoload :TargetRestoreInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/target_restore_info.rb'
|
||||
autoload :ExtendedProperties, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/extended_properties.rb'
|
||||
autoload :WeeklyRetentionFormat, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb'
|
||||
autoload :ProtectionPolicyQueryObject, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb'
|
||||
autoload :WeeklyRetentionSchedule, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb'
|
||||
autoload :ProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb'
|
||||
autoload :JobQueryObject, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb'
|
||||
autoload :ProtectedItemQueryObject, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb'
|
||||
autoload :Job, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job.rb'
|
||||
autoload :AzureStorageJobExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_storage_job_extended_info.rb'
|
||||
autoload :RecoveryPointDiskConfiguration, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point_disk_configuration.rb'
|
||||
autoload :ErrorDetail, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/error_detail.rb'
|
||||
autoload :RecoveryPointTierInformation, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_information.rb'
|
||||
autoload :OperationWorkerResponse, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb'
|
||||
autoload :KeyAndSecretDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb'
|
||||
autoload :SQLDataDirectory, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/sqldata_directory.rb'
|
||||
autoload :Settings, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/settings.rb'
|
||||
autoload :AzureWorkloadSQLRecoveryPointExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlrecovery_point_extended_info.rb'
|
||||
autoload :ValidateOperationResponse, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/validate_operation_response.rb'
|
||||
autoload :KEKDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb'
|
||||
autoload :AzureIaaSVMErrorInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb'
|
||||
autoload :SQLDataDirectoryMapping, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/sqldata_directory_mapping.rb'
|
||||
autoload :Resource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/resource.rb'
|
||||
autoload :GetProtectedItemQueryObject, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb'
|
||||
autoload :RecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb'
|
||||
autoload :BackupResourceVaultConfig, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb'
|
||||
autoload :AzureStorageErrorInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_storage_error_info.rb'
|
||||
autoload :EncryptionDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb'
|
||||
autoload :ProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb'
|
||||
autoload :BEKDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb'
|
||||
autoload :OperationResultInfoBase, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb'
|
||||
autoload :BMSRPQueryObject, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb'
|
||||
autoload :RetentionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb'
|
||||
autoload :DiskInformation, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/disk_information.rb'
|
||||
autoload :AzureIaaSVMJobTaskDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb'
|
||||
autoload :Day, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/day.rb'
|
||||
autoload :AzureSqlProtectedItemExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb'
|
||||
autoload :AzureFileshareProtectedItemExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item_extended_info.rb'
|
||||
autoload :AzureVmWorkloadProtectedItemExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protected_item_extended_info.rb'
|
||||
autoload :DPMProtectedItemExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb'
|
||||
autoload :RestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb'
|
||||
autoload :DailyRetentionSchedule, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb'
|
||||
autoload :AzureStorageJobTaskDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_storage_job_task_details.rb'
|
||||
autoload :DpmErrorInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb'
|
||||
autoload :DiskExclusionProperties, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/disk_exclusion_properties.rb'
|
||||
autoload :DpmJobTaskDetails, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb'
|
||||
autoload :TargetAFSRestoreInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/target_afsrestore_info.rb'
|
||||
autoload :DpmJobExtendedInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb'
|
||||
autoload :AzureFileshareProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb'
|
||||
autoload :AzureFileShareRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_recovery_point.rb'
|
||||
autoload :AzureFileShareRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_restore_request.rb'
|
||||
autoload :AzureVmWorkloadProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb'
|
||||
autoload :AzureFileShareProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb'
|
||||
autoload :AzureIaaSVMJob, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb'
|
||||
autoload :AzureIaaSVMProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb'
|
||||
autoload :AzureIaaSClassicComputeVMProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb'
|
||||
autoload :AzureIaaSComputeVMProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb'
|
||||
autoload :AzureIaaSVMProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb'
|
||||
autoload :AzureSqlProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb'
|
||||
autoload :AzureSqlProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb'
|
||||
autoload :AzureStorageJob, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_storage_job.rb'
|
||||
autoload :AzureVmWorkloadProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protected_item.rb'
|
||||
autoload :AzureVmWorkloadSAPAseDatabaseProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sapase_database_protected_item.rb'
|
||||
autoload :AzureVmWorkloadSAPHanaDatabaseProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_saphana_database_protected_item.rb'
|
||||
autoload :AzureVmWorkloadSQLDatabaseProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqldatabase_protected_item.rb'
|
||||
autoload :AzureWorkloadJob, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_job.rb'
|
||||
autoload :AzureWorkloadPointInTimeRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_point_in_time_restore_request.rb'
|
||||
autoload :AzureWorkloadRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb'
|
||||
autoload :AzureWorkloadPointInTimeRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_point_in_time_recovery_point.rb'
|
||||
autoload :AzureWorkloadRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb'
|
||||
autoload :AzureWorkloadSAPHanaPointInTimeRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_saphana_point_in_time_recovery_point.rb'
|
||||
autoload :AzureWorkloadSAPHanaRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_saphana_recovery_point.rb'
|
||||
autoload :AzureWorkloadSAPHanaRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_saphana_restore_request.rb'
|
||||
autoload :AzureWorkloadSAPHanaPointInTimeRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_saphana_point_in_time_restore_request.rb'
|
||||
autoload :AzureWorkloadSQLRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlrecovery_point.rb'
|
||||
autoload :AzureWorkloadSQLPointInTimeRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlpoint_in_time_recovery_point.rb'
|
||||
autoload :AzureWorkloadSQLRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlrestore_request.rb'
|
||||
autoload :AzureWorkloadSQLPointInTimeRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlpoint_in_time_restore_request.rb'
|
||||
autoload :BackupResourceVaultConfigResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config_resource.rb'
|
||||
autoload :DpmJob, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb'
|
||||
autoload :DPMProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb'
|
||||
autoload :ExportJobsOperationResultInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb'
|
||||
autoload :GenericProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb'
|
||||
autoload :GenericProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb'
|
||||
autoload :GenericRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb'
|
||||
autoload :IaasVMRecoveryPoint, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb'
|
||||
autoload :IaasVMRestoreRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb'
|
||||
autoload :JobResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb'
|
||||
autoload :JobResourceList, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb'
|
||||
autoload :LogSchedulePolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/log_schedule_policy.rb'
|
||||
autoload :LongTermRetentionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb'
|
||||
autoload :LongTermSchedulePolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb'
|
||||
autoload :MabFileFolderProtectedItem, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb'
|
||||
autoload :MabJob, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb'
|
||||
autoload :MabProtectionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb'
|
||||
autoload :OperationResultInfo, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb'
|
||||
autoload :OperationResultInfoBaseResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb'
|
||||
autoload :ProtectedItemResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb'
|
||||
autoload :ProtectedItemResourceList, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb'
|
||||
autoload :ProtectionPolicyResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb'
|
||||
autoload :ProtectionPolicyResourceList, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb'
|
||||
autoload :RecoveryPointResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb'
|
||||
autoload :RecoveryPointResourceList, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb'
|
||||
autoload :RestoreRequestResource, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb'
|
||||
autoload :SimpleRetentionPolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb'
|
||||
autoload :SimpleSchedulePolicy, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb'
|
||||
autoload :ValidateRestoreOperationRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/validate_restore_operation_request.rb'
|
||||
autoload :ValidateIaasVMRestoreOperationRequest, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/validate_iaas_vmrestore_operation_request.rb'
|
||||
autoload :ProtectionState, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb'
|
||||
autoload :HealthStatus, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/health_status.rb'
|
||||
autoload :RecoveryType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb'
|
||||
autoload :CopyOptions, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/copy_options.rb'
|
||||
autoload :RestoreRequestType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/restore_request_type.rb'
|
||||
autoload :WorkloadType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb'
|
||||
autoload :PolicyType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/policy_type.rb'
|
||||
autoload :JobSupportedAction, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb'
|
||||
autoload :ProtectedItemState, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb'
|
||||
autoload :LastBackupStatus, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/last_backup_status.rb'
|
||||
autoload :ProtectedItemHealthStatus, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/protected_item_health_status.rb'
|
||||
autoload :RestorePointType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/restore_point_type.rb'
|
||||
autoload :OverwriteOptions, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/overwrite_options.rb'
|
||||
autoload :RecoveryMode, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_mode.rb'
|
||||
autoload :SQLDataDirectoryType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/sqldata_directory_type.rb'
|
||||
autoload :StorageType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/storage_type.rb'
|
||||
autoload :StorageTypeState, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/storage_type_state.rb'
|
||||
autoload :EnhancedSecurityState, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/enhanced_security_state.rb'
|
||||
autoload :SoftDeleteFeatureState, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/soft_delete_feature_state.rb'
|
||||
autoload :RestorePointQueryType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/restore_point_query_type.rb'
|
||||
autoload :RetentionDurationType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb'
|
||||
autoload :RecoveryPointTierType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_type.rb'
|
||||
autoload :RecoveryPointTierStatus, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_status.rb'
|
||||
autoload :BackupManagementType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb'
|
||||
autoload :JobStatus, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job_status.rb'
|
||||
autoload :JobOperationType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb'
|
||||
autoload :DayOfWeek, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb'
|
||||
autoload :RetentionScheduleFormat, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb'
|
||||
autoload :WeekOfMonth, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb'
|
||||
autoload :MonthOfYear, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb'
|
||||
autoload :MabServerType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb'
|
||||
autoload :HttpStatusCode, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb'
|
||||
autoload :DataSourceType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb'
|
||||
autoload :CreateMode, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/create_mode.rb'
|
||||
autoload :HealthState, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/health_state.rb'
|
||||
autoload :ScheduleRunType, '2019-05-13/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,242 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# BackupJobs
|
||||
#
|
||||
class BackupJobs
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the BackupJobs class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Array<JobResource>] operation results.
|
||||
#
|
||||
def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers)
|
||||
first_page.get_all_items
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$skipToken' => skip_token},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::JobResourceList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [JobResourceList] operation results.
|
||||
#
|
||||
def list_next(next_page_link, custom_headers:nil)
|
||||
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
||||
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_next_async(next_page_link, custom_headers:nil)
|
||||
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = '{nextLink}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
skip_encoding_path_params: {'nextLink' => next_page_link},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::JobResourceList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of jobs.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [JobResourceList] which provide lazy access to pages of the response.
|
||||
#
|
||||
def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value!
|
||||
unless response.nil?
|
||||
page = response.body
|
||||
page.next_method = Proc.new do |next_page_link|
|
||||
list_next_async(next_page_link, custom_headers:custom_headers)
|
||||
end
|
||||
page
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,253 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# BackupPolicies
|
||||
#
|
||||
class BackupPolicies
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the BackupPolicies class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Array<ProtectionPolicyResource>] operation results.
|
||||
#
|
||||
def list(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers)
|
||||
first_page.get_all_items
|
||||
end
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version,'$filter' => filter},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::ProtectionPolicyResourceList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ProtectionPolicyResourceList] operation results.
|
||||
#
|
||||
def list_next(next_page_link, custom_headers:nil)
|
||||
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
||||
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_next_async(next_page_link, custom_headers:nil)
|
||||
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = '{nextLink}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
skip_encoding_path_params: {'nextLink' => next_page_link},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::ProtectionPolicyResourceList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Lists of backup policies associated with Recovery Services Vault. API
|
||||
# provides pagination parameters to fetch
|
||||
# scoped results.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ProtectionPolicyResourceList] which provide lazy access to pages of
|
||||
# the response.
|
||||
#
|
||||
def list_as_lazy(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
response = list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value!
|
||||
unless response.nil?
|
||||
page = response.body
|
||||
page.next_method = Proc.new do |next_page_link|
|
||||
list_next_async(next_page_link, custom_headers:custom_headers)
|
||||
end
|
||||
page
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,243 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# BackupProtectedItems
|
||||
#
|
||||
class BackupProtectedItems
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the BackupProtectedItems class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Array<ProtectedItemResource>] operation results.
|
||||
#
|
||||
def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers)
|
||||
first_page.get_all_items
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$skipToken' => skip_token},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::ProtectedItemResourceList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ProtectedItemResourceList] operation results.
|
||||
#
|
||||
def list_next(next_page_link, custom_headers:nil)
|
||||
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
||||
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param next_page_link [String] The NextLink from the previous successful call
|
||||
# to List operation.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_next_async(next_page_link, custom_headers:nil)
|
||||
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = '{nextLink}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
skip_encoding_path_params: {'nextLink' => next_page_link},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::ProtectedItemResourceList.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Provides a pageable list of all items that are backed up within a vault.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param skip_token [String] skipToken Filter.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ProtectedItemResourceList] which provide lazy access to pages of the
|
||||
# response.
|
||||
#
|
||||
def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil)
|
||||
response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value!
|
||||
unless response.nil?
|
||||
page = response.body
|
||||
page.next_method = Proc.new do |next_page_link|
|
||||
list_next_async(next_page_link, custom_headers:custom_headers)
|
||||
end
|
||||
page
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,230 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# BackupResourceVaultConfigs
|
||||
#
|
||||
class BackupResourceVaultConfigs
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the BackupResourceVaultConfigs class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Fetches resource vault config.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [BackupResourceVaultConfigResource] operation results.
|
||||
#
|
||||
def get(vault_name, resource_group_name, custom_headers:nil)
|
||||
response = get_async(vault_name, resource_group_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Fetches resource vault config.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(vault_name, resource_group_name, custom_headers:nil)
|
||||
get_async(vault_name, resource_group_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Fetches resource vault config.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(vault_name, resource_group_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::BackupResourceVaultConfigResource.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Updates vault security config.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param parameters [BackupResourceVaultConfigResource] resource config request
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [BackupResourceVaultConfigResource] operation results.
|
||||
#
|
||||
def update(vault_name, resource_group_name, parameters, custom_headers:nil)
|
||||
response = update_async(vault_name, resource_group_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Updates vault security config.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param parameters [BackupResourceVaultConfigResource] resource config request
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def update_with_http_info(vault_name, resource_group_name, parameters, custom_headers:nil)
|
||||
update_async(vault_name, resource_group_name, parameters, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Updates vault security config.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param parameters [BackupResourceVaultConfigResource] resource config request
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def update_async(vault_name, resource_group_name, parameters, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::BackupResourceVaultConfigResource.mapper()
|
||||
request_content = @client.serialize(request_mapper, parameters)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:patch, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::BackupResourceVaultConfigResource.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,145 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# ExportJobsOperationResults
|
||||
#
|
||||
class ExportJobsOperationResults
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the ExportJobsOperationResults class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Gets the operation result of operation triggered by Export Jobs API. If the
|
||||
# operation is successful, then it also
|
||||
# contains URL of a Blob and a SAS key to access the same. The blob contains
|
||||
# exported jobs in JSON serialized format.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param operation_id [String] OperationID which represents the export job.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [OperationResultInfoBaseResource] operation results.
|
||||
#
|
||||
def get(vault_name, resource_group_name, operation_id, custom_headers:nil)
|
||||
response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets the operation result of operation triggered by Export Jobs API. If the
|
||||
# operation is successful, then it also
|
||||
# contains URL of a Blob and a SAS key to access the same. The blob contains
|
||||
# exported jobs in JSON serialized format.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param operation_id [String] OperationID which represents the export job.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil)
|
||||
get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets the operation result of operation triggered by Export Jobs API. If the
|
||||
# operation is successful, then it also
|
||||
# contains URL of a Blob and a SAS key to access the same. The blob contains
|
||||
# exported jobs in JSON serialized format.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param operation_id [String] OperationID which represents the export job.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'operationId' => operation_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::OperationResultInfoBaseResource.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
# Deserialize Response
|
||||
if status_code == 202
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::OperationResultInfoBaseResource.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,121 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# JobCancellations
|
||||
#
|
||||
class JobCancellations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the JobCancellations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Cancels a job. This is an asynchronous operation. To know the status of the
|
||||
# cancellation, call
|
||||
# GetCancelOperationResult API.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Name of the job to cancel.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def trigger(vault_name, resource_group_name, job_name, custom_headers:nil)
|
||||
response = trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Cancels a job. This is an asynchronous operation. To know the status of the
|
||||
# cancellation, call
|
||||
# GetCancelOperationResult API.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Name of the job to cancel.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil)
|
||||
trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Cancels a job. This is an asynchronous operation. To know the status of the
|
||||
# cancellation, call
|
||||
# GetCancelOperationResult API.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Name of the job to cancel.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def trigger_async(vault_name, resource_group_name, job_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'jobName' => job_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:post, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,126 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# JobDetails
|
||||
#
|
||||
class JobDetails
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the JobDetails class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Gets extended information associated with the job.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Name of the job whose details are to be fetched.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [JobResource] operation results.
|
||||
#
|
||||
def get(vault_name, resource_group_name, job_name, custom_headers:nil)
|
||||
response = get_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets extended information associated with the job.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Name of the job whose details are to be fetched.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil)
|
||||
get_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets extended information associated with the job.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Name of the job whose details are to be fetched.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(vault_name, resource_group_name, job_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'jobName' => job_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::JobResource.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,122 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# JobOperationResults
|
||||
#
|
||||
class JobOperationResults
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the JobOperationResults class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Fetches the result of any operation.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Job name whose operation result has to be fetched.
|
||||
# @param operation_id [String] OperationID which represents the operation whose
|
||||
# result has to be fetched.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def get(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil)
|
||||
response = get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Fetches the result of any operation.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Job name whose operation result has to be fetched.
|
||||
# @param operation_id [String] OperationID which represents the operation whose
|
||||
# result has to be fetched.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil)
|
||||
get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Fetches the result of any operation.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param job_name [String] Job name whose operation result has to be fetched.
|
||||
# @param operation_id [String] OperationID which represents the operation whose
|
||||
# result has to be fetched.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'job_name is nil' if job_name.nil?
|
||||
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'jobName' => job_name,'operationId' => operation_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,117 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
#
|
||||
# Jobs
|
||||
#
|
||||
class Jobs
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Jobs class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Triggers export of jobs specified by filters and returns an OperationID to
|
||||
# track.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def export(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
response = export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Triggers export of jobs specified by filters and returns an OperationID to
|
||||
# track.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def export_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Triggers export of jobs specified by filters and returns an OperationID to
|
||||
# track.
|
||||
#
|
||||
# @param vault_name [String] The name of the recovery services vault.
|
||||
# @param resource_group_name [String] The name of the resource group where the
|
||||
# recovery services vault is present.
|
||||
# @param filter [String] OData filter options.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def export_async(vault_name, resource_group_name, filter:nil, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version,'$filter' => filter},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:post, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,115 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# AzureStorage backup policy.
|
||||
#
|
||||
class AzureFileShareProtectionPolicy < ProtectionPolicy
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@backupManagementType = "AzureStorage"
|
||||
end
|
||||
|
||||
attr_accessor :backupManagementType
|
||||
|
||||
# @return [WorkloadType] Type of workload for the backup management.
|
||||
# Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb',
|
||||
# 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client',
|
||||
# 'GenericDataSource', 'SQLDataBase', 'AzureFileShare',
|
||||
# 'SAPHanaDatabase', 'SAPAseDatabase'
|
||||
attr_accessor :work_load_type
|
||||
|
||||
# @return [SchedulePolicy] Backup schedule specified as part of backup
|
||||
# policy.
|
||||
attr_accessor :schedule_policy
|
||||
|
||||
# @return [RetentionPolicy] Retention policy with the details on backup
|
||||
# copy retention ranges.
|
||||
attr_accessor :retention_policy
|
||||
|
||||
# @return [String] TimeZone optional input as string. For example:
|
||||
# TimeZone = "Pacific Standard Time".
|
||||
attr_accessor :time_zone
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureFileShareProtectionPolicy class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureStorage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureFileShareProtectionPolicy',
|
||||
model_properties: {
|
||||
protected_items_count: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemsCount',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
backupManagementType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
work_load_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'workLoadType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
schedule_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'schedulePolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'schedulePolicyType',
|
||||
uber_parent: 'SchedulePolicy',
|
||||
class_name: 'SchedulePolicy'
|
||||
}
|
||||
},
|
||||
retention_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'retentionPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'retentionPolicyType',
|
||||
uber_parent: 'RetentionPolicy',
|
||||
class_name: 'RetentionPolicy'
|
||||
}
|
||||
},
|
||||
time_zone: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'timeZone',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,100 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure File Share workload specific backup copy.
|
||||
#
|
||||
class AzureFileShareRecoveryPoint < RecoveryPoint
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@objectType = "AzureFileShareRecoveryPoint"
|
||||
end
|
||||
|
||||
attr_accessor :objectType
|
||||
|
||||
# @return [String] Type of the backup copy. Specifies whether it is a
|
||||
# crash consistent backup or app consistent.
|
||||
attr_accessor :recovery_point_type
|
||||
|
||||
# @return [DateTime] Time at which this backup copy was created.
|
||||
attr_accessor :recovery_point_time
|
||||
|
||||
# @return [String] Contains Url to the snapshot of fileshare, if
|
||||
# applicable
|
||||
attr_accessor :file_share_snapshot_uri
|
||||
|
||||
# @return [Integer] Contains recovery point size
|
||||
attr_accessor :recovery_point_size_in_gb
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureFileShareRecoveryPoint class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureFileShareRecoveryPoint',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureFileShareRecoveryPoint',
|
||||
model_properties: {
|
||||
objectType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'objectType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recovery_point_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'recoveryPointType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recovery_point_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'recoveryPointTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
file_share_snapshot_uri: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'fileShareSnapshotUri',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recovery_point_size_in_gb: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'recoveryPointSizeInGB',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,133 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# AzureFileShare Restore Request
|
||||
#
|
||||
class AzureFileShareRestoreRequest < RestoreRequest
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@objectType = "AzureFileShareRestoreRequest"
|
||||
end
|
||||
|
||||
attr_accessor :objectType
|
||||
|
||||
# @return [RecoveryType] Type of this recovery. Possible values include:
|
||||
# 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks',
|
||||
# 'Offline'
|
||||
attr_accessor :recovery_type
|
||||
|
||||
# @return [String] Source storage account ARM Id
|
||||
attr_accessor :source_resource_id
|
||||
|
||||
# @return [CopyOptions] Options to resolve copy conflicts. Possible
|
||||
# values include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite',
|
||||
# 'FailOnConflict'
|
||||
attr_accessor :copy_options
|
||||
|
||||
# @return [RestoreRequestType] Restore Type (FullShareRestore or
|
||||
# ItemLevelRestore). Possible values include: 'Invalid',
|
||||
# 'FullShareRestore', 'ItemLevelRestore'
|
||||
attr_accessor :restore_request_type
|
||||
|
||||
# @return [Array<RestoreFileSpecs>] List of Source Files/Folders(which
|
||||
# need to recover) and TargetFolderPath details
|
||||
attr_accessor :restore_file_specs
|
||||
|
||||
# @return [TargetAFSRestoreInfo] Target File Share Details
|
||||
attr_accessor :target_details
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureFileShareRestoreRequest class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureFileShareRestoreRequest',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureFileShareRestoreRequest',
|
||||
model_properties: {
|
||||
objectType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'objectType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recovery_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'recoveryType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sourceResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copy_options: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'copyOptions',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
restore_request_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'restoreRequestType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
restore_file_specs: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'restoreFileSpecs',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'RestoreFileSpecsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'RestoreFileSpecs'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
target_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'targetDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'TargetAFSRestoreInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,240 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure File Share workload-specific backup item.
|
||||
#
|
||||
class AzureFileshareProtectedItem < ProtectedItem
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@protectedItemType = "AzureFileShareProtectedItem"
|
||||
end
|
||||
|
||||
attr_accessor :protectedItemType
|
||||
|
||||
# @return [String] Friendly name of the fileshare represented by this
|
||||
# backup item.
|
||||
attr_accessor :friendly_name
|
||||
|
||||
# @return [String] Backup status of this backup item.
|
||||
attr_accessor :protection_status
|
||||
|
||||
# @return [ProtectionState] Backup state of this backup item. Possible
|
||||
# values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError',
|
||||
# 'ProtectionStopped', 'ProtectionPaused'
|
||||
attr_accessor :protection_state
|
||||
|
||||
# @return [HealthStatus] backups running status for this backup item.
|
||||
# Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested',
|
||||
# 'Invalid'
|
||||
attr_accessor :health_status
|
||||
|
||||
# @return [String] Last backup operation status. Possible values:
|
||||
# Healthy, Unhealthy.
|
||||
attr_accessor :last_backup_status
|
||||
|
||||
# @return [DateTime] Timestamp of the last backup operation on this
|
||||
# backup item.
|
||||
attr_accessor :last_backup_time
|
||||
|
||||
# @return [AzureFileshareProtectedItemExtendedInfo] Additional
|
||||
# information with this backup item.
|
||||
attr_accessor :extended_info
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureFileshareProtectedItem class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureFileShareProtectedItem',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureFileshareProtectedItem',
|
||||
model_properties: {
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
workload_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'workloadType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
container_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'containerName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sourceResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
policy_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
backup_set_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupSetName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
create_mode: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_in_utc: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeInUTC',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
is_scheduled_for_deferred_delete: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isScheduledForDeferredDelete',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_remaining: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeRemaining',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
is_deferred_delete_schedule_upcoming: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isDeferredDeleteScheduleUpcoming',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
is_rehydrate: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isRehydrate',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
protectedItemType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protectedItemType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
friendly_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'friendlyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_backup_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_backup_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureFileshareProtectedItemExtendedInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,96 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Additional information about Azure File Share backup item.
|
||||
#
|
||||
class AzureFileshareProtectedItemExtendedInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [DateTime] The oldest backup copy available for this item in
|
||||
# the service.
|
||||
attr_accessor :oldest_recovery_point
|
||||
|
||||
# @return [Integer] Number of available backup copies associated with
|
||||
# this backup item.
|
||||
attr_accessor :recovery_point_count
|
||||
|
||||
# @return [String] Indicates consistency of policy object and policy
|
||||
# applied to this backup item.
|
||||
attr_accessor :policy_state
|
||||
|
||||
# @return [String] Indicates the state of this resource. Possible values
|
||||
# are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted}
|
||||
attr_accessor :resource_state
|
||||
|
||||
# @return [DateTime] The resource state sync time for this backup item.
|
||||
attr_accessor :resource_state_sync_time
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureFileshareProtectedItemExtendedInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureFileshareProtectedItemExtendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureFileshareProtectedItemExtendedInfo',
|
||||
model_properties: {
|
||||
oldest_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'oldestRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
recovery_point_count: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'recoveryPointCount',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
policy_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'resourceState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_state_sync_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'resourceStateSyncTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,254 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# IaaS VM workload-specific backup item representing the Classic Compute
|
||||
# VM.
|
||||
#
|
||||
class AzureIaaSClassicComputeVMProtectedItem < AzureIaaSVMProtectedItem
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@protectedItemType = "Microsoft.ClassicCompute/virtualMachines"
|
||||
end
|
||||
|
||||
attr_accessor :protectedItemType
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSClassicComputeVMProtectedItem class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Microsoft.ClassicCompute/virtualMachines',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSClassicComputeVMProtectedItem',
|
||||
model_properties: {
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
workload_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'workloadType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
container_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'containerName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sourceResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
policy_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
backup_set_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupSetName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
create_mode: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_in_utc: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeInUTC',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
is_scheduled_for_deferred_delete: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isScheduledForDeferredDelete',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_remaining: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeRemaining',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
is_deferred_delete_schedule_upcoming: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isDeferredDeleteScheduleUpcoming',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
is_rehydrate: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isRehydrate',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
protectedItemType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protectedItemType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
friendly_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'friendlyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
virtual_machine_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'virtualMachineId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMHealthDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMHealthDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
last_backup_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_backup_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
protected_item_data_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemDataId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMProtectedItemExtendedInfo'
|
||||
}
|
||||
},
|
||||
extended_properties: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExtendedProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,254 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# IaaS VM workload-specific backup item representing the Azure Resource
|
||||
# Manager VM.
|
||||
#
|
||||
class AzureIaaSComputeVMProtectedItem < AzureIaaSVMProtectedItem
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@protectedItemType = "Microsoft.Compute/virtualMachines"
|
||||
end
|
||||
|
||||
attr_accessor :protectedItemType
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSComputeVMProtectedItem class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Microsoft.Compute/virtualMachines',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSComputeVMProtectedItem',
|
||||
model_properties: {
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
workload_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'workloadType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
container_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'containerName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sourceResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
policy_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
backup_set_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupSetName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
create_mode: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_in_utc: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeInUTC',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
is_scheduled_for_deferred_delete: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isScheduledForDeferredDelete',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_remaining: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeRemaining',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
is_deferred_delete_schedule_upcoming: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isDeferredDeleteScheduleUpcoming',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
is_rehydrate: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isRehydrate',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
protectedItemType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protectedItemType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
friendly_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'friendlyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
virtual_machine_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'virtualMachineId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMHealthDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMHealthDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
last_backup_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_backup_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
protected_item_data_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemDataId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMProtectedItemExtendedInfo'
|
||||
}
|
||||
},
|
||||
extended_properties: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExtendedProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,93 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure IaaS VM workload-specific error information.
|
||||
#
|
||||
class AzureIaaSVMErrorInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Integer] Error code.
|
||||
attr_accessor :error_code
|
||||
|
||||
# @return [String] Title: Typically, the entity that the error pertains
|
||||
# to.
|
||||
attr_accessor :error_title
|
||||
|
||||
# @return [String] Localized error string.
|
||||
attr_accessor :error_string
|
||||
|
||||
# @return [Array<String>] List of localized recommendations for above
|
||||
# error code.
|
||||
attr_accessor :recommendations
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMErrorInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMErrorInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMErrorInfo',
|
||||
model_properties: {
|
||||
error_code: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'errorCode',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
error_title: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'errorTitle',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
error_string: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'errorString',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recommendations: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'recommendations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,91 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure IaaS VM workload-specific Health Details.
|
||||
#
|
||||
class AzureIaaSVMHealthDetails
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Integer] Health Code
|
||||
attr_accessor :code
|
||||
|
||||
# @return [String] Health Title
|
||||
attr_accessor :title
|
||||
|
||||
# @return [String] Health Message
|
||||
attr_accessor :message
|
||||
|
||||
# @return [Array<String>] Health Recommended Actions
|
||||
attr_accessor :recommendations
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMHealthDetails class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMHealthDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMHealthDetails',
|
||||
model_properties: {
|
||||
code: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'code',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
title: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'title',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recommendations: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'recommendations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,184 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure IaaS VM workload-specific job object.
|
||||
#
|
||||
class AzureIaaSVMJob < Job
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@jobType = "AzureIaaSVMJob"
|
||||
end
|
||||
|
||||
attr_accessor :jobType
|
||||
|
||||
# @return [Duration] Time elapsed during the execution of this job.
|
||||
attr_accessor :duration
|
||||
|
||||
# @return [Array<JobSupportedAction>] Gets or sets the state/actions
|
||||
# applicable on this job like cancel/retry.
|
||||
attr_accessor :actions_info
|
||||
|
||||
# @return [Array<AzureIaaSVMErrorInfo>] Error details on execution of
|
||||
# this job.
|
||||
attr_accessor :error_details
|
||||
|
||||
# @return [String] Specifies whether the backup item is a Classic or an
|
||||
# Azure Resource Manager VM.
|
||||
attr_accessor :virtual_machine_version
|
||||
|
||||
# @return [AzureIaaSVMJobExtendedInfo] Additional information for this
|
||||
# job.
|
||||
attr_accessor :extended_info
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMJob class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMJob',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMJob',
|
||||
model_properties: {
|
||||
entity_friendly_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'entityFriendlyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
start_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
end_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'endTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
activity_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'activityId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'jobType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
duration: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'duration',
|
||||
type: {
|
||||
name: 'TimeSpan'
|
||||
}
|
||||
},
|
||||
actions_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'actionsInfo',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'JobSupportedActionElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'JobSupportedAction'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
error_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMErrorInfoElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMErrorInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
virtual_machine_version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'virtualMachineVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMJobExtendedInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,128 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure IaaS VM workload-specific additional information for job.
|
||||
#
|
||||
class AzureIaaSVMJobExtendedInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<AzureIaaSVMJobTaskDetails>] List of tasks associated
|
||||
# with this job.
|
||||
attr_accessor :tasks_list
|
||||
|
||||
# @return [Hash{String => String}] Job properties.
|
||||
attr_accessor :property_bag
|
||||
|
||||
# @return [Hash{String => String}] Job internal properties.
|
||||
attr_accessor :internal_property_bag
|
||||
|
||||
# @return [Float] Indicates progress of the job. Null if it has not
|
||||
# started or completed.
|
||||
attr_accessor :progress_percentage
|
||||
|
||||
# @return [String] Time remaining for execution of this job.
|
||||
attr_accessor :estimated_remaining_duration
|
||||
|
||||
# @return [String] Non localized error message on job execution.
|
||||
attr_accessor :dynamic_error_message
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMJobExtendedInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMJobExtendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMJobExtendedInfo',
|
||||
model_properties: {
|
||||
tasks_list: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tasksList',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMJobTaskDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMJobTaskDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
property_bag: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'propertyBag',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
internal_property_bag: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'internalPropertyBag',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
progress_percentage: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'progressPercentage',
|
||||
type: {
|
||||
name: 'Double'
|
||||
}
|
||||
},
|
||||
estimated_remaining_duration: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'estimatedRemainingDuration',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
dynamic_error_message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'dynamicErrorMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,124 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure IaaS VM workload-specific job task details.
|
||||
#
|
||||
class AzureIaaSVMJobTaskDetails
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The task display name.
|
||||
attr_accessor :task_id
|
||||
|
||||
# @return [DateTime] The start time.
|
||||
attr_accessor :start_time
|
||||
|
||||
# @return [DateTime] The end time.
|
||||
attr_accessor :end_time
|
||||
|
||||
# @return [String] The instanceId.
|
||||
attr_accessor :instance_id
|
||||
|
||||
# @return [Duration] Time elapsed for task.
|
||||
attr_accessor :duration
|
||||
|
||||
# @return [String] The status.
|
||||
attr_accessor :status
|
||||
|
||||
# @return [Float] Progress of the task.
|
||||
attr_accessor :progress_percentage
|
||||
|
||||
# @return [String] Details about execution of the task.
|
||||
# eg: number of bytes transferred etc
|
||||
attr_accessor :task_execution_details
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMJobTaskDetails class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMJobTaskDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMJobTaskDetails',
|
||||
model_properties: {
|
||||
task_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'taskId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
start_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
end_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'endTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
instance_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'instanceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
duration: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'duration',
|
||||
type: {
|
||||
name: 'TimeSpan'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
progress_percentage: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'progressPercentage',
|
||||
type: {
|
||||
name: 'Double'
|
||||
}
|
||||
},
|
||||
task_execution_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'taskExecutionDetails',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,294 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# IaaS VM workload-specific backup item.
|
||||
#
|
||||
class AzureIaaSVMProtectedItem < ProtectedItem
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@protectedItemType = "AzureIaaSVMProtectedItem"
|
||||
end
|
||||
|
||||
attr_accessor :protectedItemType
|
||||
|
||||
# @return [String] Friendly name of the VM represented by this backup
|
||||
# item.
|
||||
attr_accessor :friendly_name
|
||||
|
||||
# @return [String] Fully qualified ARM ID of the virtual machine
|
||||
# represented by this item.
|
||||
attr_accessor :virtual_machine_id
|
||||
|
||||
# @return [String] Backup status of this backup item.
|
||||
attr_accessor :protection_status
|
||||
|
||||
# @return [ProtectionState] Backup state of this backup item. Possible
|
||||
# values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError',
|
||||
# 'ProtectionStopped', 'ProtectionPaused'
|
||||
attr_accessor :protection_state
|
||||
|
||||
# @return [HealthStatus] Health status of protected item. Possible values
|
||||
# include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid'
|
||||
attr_accessor :health_status
|
||||
|
||||
# @return [Array<AzureIaaSVMHealthDetails>] Health details on this backup
|
||||
# item.
|
||||
attr_accessor :health_details
|
||||
|
||||
# @return [String] Last backup operation status.
|
||||
attr_accessor :last_backup_status
|
||||
|
||||
# @return [DateTime] Timestamp of the last backup operation on this
|
||||
# backup item.
|
||||
attr_accessor :last_backup_time
|
||||
|
||||
# @return [String] Data ID of the protected item.
|
||||
attr_accessor :protected_item_data_id
|
||||
|
||||
# @return [AzureIaaSVMProtectedItemExtendedInfo] Additional information
|
||||
# for this backup item.
|
||||
attr_accessor :extended_info
|
||||
|
||||
# @return [ExtendedProperties]
|
||||
attr_accessor :extended_properties
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMProtectedItem class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMProtectedItem',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMProtectedItem',
|
||||
model_properties: {
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
workload_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'workloadType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
container_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'containerName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sourceResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
policy_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
backup_set_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupSetName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
create_mode: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_in_utc: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeInUTC',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
is_scheduled_for_deferred_delete: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isScheduledForDeferredDelete',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_remaining: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeRemaining',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
is_deferred_delete_schedule_upcoming: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isDeferredDeleteScheduleUpcoming',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
is_rehydrate: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isRehydrate',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
protectedItemType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protectedItemType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
friendly_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'friendlyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
virtual_machine_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'virtualMachineId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
health_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'healthDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMHealthDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMHealthDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
last_backup_status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupStatus',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_backup_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastBackupTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
protected_item_data_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemDataId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMProtectedItemExtendedInfo'
|
||||
}
|
||||
},
|
||||
extended_properties: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExtendedProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,71 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Additional information on Azure IaaS VM specific backup item.
|
||||
#
|
||||
class AzureIaaSVMProtectedItemExtendedInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [DateTime] The oldest backup copy available for this backup
|
||||
# item.
|
||||
attr_accessor :oldest_recovery_point
|
||||
|
||||
# @return [Integer] Number of backup copies available for this backup
|
||||
# item.
|
||||
attr_accessor :recovery_point_count
|
||||
|
||||
# @return [Boolean] Specifies if backup policy associated with the backup
|
||||
# item is inconsistent.
|
||||
attr_accessor :policy_inconsistent
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMProtectedItemExtendedInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaaSVMProtectedItemExtendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMProtectedItemExtendedInfo',
|
||||
model_properties: {
|
||||
oldest_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'oldestRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
recovery_point_count: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'recoveryPointCount',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
policy_inconsistent: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyInconsistent',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,111 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# IaaS VM workload-specific backup policy.
|
||||
#
|
||||
class AzureIaaSVMProtectionPolicy < ProtectionPolicy
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@backupManagementType = "AzureIaasVM"
|
||||
end
|
||||
|
||||
attr_accessor :backupManagementType
|
||||
|
||||
# @return [SchedulePolicy] Backup schedule specified as part of backup
|
||||
# policy.
|
||||
attr_accessor :schedule_policy
|
||||
|
||||
# @return [RetentionPolicy] Retention policy with the details on backup
|
||||
# copy retention ranges.
|
||||
attr_accessor :retention_policy
|
||||
|
||||
# @return [Integer] Instant RP retention policy range in days
|
||||
attr_accessor :instant_rp_retention_range_in_days
|
||||
|
||||
# @return [String] TimeZone optional input as string. For example:
|
||||
# TimeZone = "Pacific Standard Time".
|
||||
attr_accessor :time_zone
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureIaaSVMProtectionPolicy class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureIaasVM',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureIaaSVMProtectionPolicy',
|
||||
model_properties: {
|
||||
protected_items_count: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemsCount',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
backupManagementType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
schedule_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'schedulePolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'schedulePolicyType',
|
||||
uber_parent: 'SchedulePolicy',
|
||||
class_name: 'SchedulePolicy'
|
||||
}
|
||||
},
|
||||
retention_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'retentionPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'retentionPolicyType',
|
||||
uber_parent: 'RetentionPolicy',
|
||||
class_name: 'RetentionPolicy'
|
||||
}
|
||||
},
|
||||
instant_rp_retention_range_in_days: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'instantRpRetentionRangeInDays',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
time_zone: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'timeZone',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,192 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure SQL workload-specific backup item.
|
||||
#
|
||||
class AzureSqlProtectedItem < ProtectedItem
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@protectedItemType = "Microsoft.Sql/servers/databases"
|
||||
end
|
||||
|
||||
attr_accessor :protectedItemType
|
||||
|
||||
# @return [String] Internal ID of a backup item. Used by Azure SQL Backup
|
||||
# engine to contact Recovery Services.
|
||||
attr_accessor :protected_item_data_id
|
||||
|
||||
# @return [ProtectedItemState] Backup state of the backed up item.
|
||||
# Possible values include: 'Invalid', 'IRPending', 'Protected',
|
||||
# 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused'
|
||||
attr_accessor :protection_state
|
||||
|
||||
# @return [AzureSqlProtectedItemExtendedInfo] Additional information for
|
||||
# this backup item.
|
||||
attr_accessor :extended_info
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureSqlProtectedItem class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Microsoft.Sql/servers/databases',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureSqlProtectedItem',
|
||||
model_properties: {
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
workload_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'workloadType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
container_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'containerName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sourceResourceId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
policy_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
last_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'lastRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
backup_set_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupSetName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
create_mode: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_in_utc: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeInUTC',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
is_scheduled_for_deferred_delete: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isScheduledForDeferredDelete',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
deferred_delete_time_remaining: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'deferredDeleteTimeRemaining',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
is_deferred_delete_schedule_upcoming: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isDeferredDeleteScheduleUpcoming',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
is_rehydrate: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'isRehydrate',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
protectedItemType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protectedItemType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protected_item_data_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemDataId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protection_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectionState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureSqlProtectedItemExtendedInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,71 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Additional information on Azure Sql specific protected item.
|
||||
#
|
||||
class AzureSqlProtectedItemExtendedInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [DateTime] The oldest backup copy available for this item in
|
||||
# the service.
|
||||
attr_accessor :oldest_recovery_point
|
||||
|
||||
# @return [Integer] Number of available backup copies associated with
|
||||
# this backup item.
|
||||
attr_accessor :recovery_point_count
|
||||
|
||||
# @return [String] State of the backup policy associated with this backup
|
||||
# item.
|
||||
attr_accessor :policy_state
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureSqlProtectedItemExtendedInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureSqlProtectedItemExtendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureSqlProtectedItemExtendedInfo',
|
||||
model_properties: {
|
||||
oldest_recovery_point: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'oldestRecoveryPoint',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
recovery_point_count: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'recoveryPointCount',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
policy_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'policyState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,72 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure SQL workload-specific backup policy.
|
||||
#
|
||||
class AzureSqlProtectionPolicy < ProtectionPolicy
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@backupManagementType = "AzureSql"
|
||||
end
|
||||
|
||||
attr_accessor :backupManagementType
|
||||
|
||||
# @return [RetentionPolicy] Retention policy details.
|
||||
attr_accessor :retention_policy
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureSqlProtectionPolicy class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureSql',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureSqlProtectionPolicy',
|
||||
model_properties: {
|
||||
protected_items_count: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'protectedItemsCount',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
backupManagementType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
retention_policy: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'retentionPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'retentionPolicyType',
|
||||
uber_parent: 'RetentionPolicy',
|
||||
class_name: 'RetentionPolicy'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,77 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure storage specific error information
|
||||
#
|
||||
class AzureStorageErrorInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Integer] Error code.
|
||||
attr_accessor :error_code
|
||||
|
||||
# @return [String] Localized error string.
|
||||
attr_accessor :error_string
|
||||
|
||||
# @return [Array<String>] List of localized recommendations for above
|
||||
# error code.
|
||||
attr_accessor :recommendations
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureStorageErrorInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureStorageErrorInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureStorageErrorInfo',
|
||||
model_properties: {
|
||||
error_code: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'errorCode',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
error_string: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'errorString',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
recommendations: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'recommendations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,195 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure storage specific job.
|
||||
#
|
||||
class AzureStorageJob < Job
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@jobType = "AzureStorageJob"
|
||||
end
|
||||
|
||||
attr_accessor :jobType
|
||||
|
||||
# @return [Duration] Time elapsed during the execution of this job.
|
||||
attr_accessor :duration
|
||||
|
||||
# @return [Array<JobSupportedAction>] Gets or sets the state/actions
|
||||
# applicable on this job like cancel/retry.
|
||||
attr_accessor :actions_info
|
||||
|
||||
# @return [Array<AzureStorageErrorInfo>] Error details on execution of
|
||||
# this job.
|
||||
attr_accessor :error_details
|
||||
|
||||
# @return [String] Specifies friendly name of the storage account.
|
||||
attr_accessor :storage_account_name
|
||||
|
||||
# @return [String] Specifies whether the Storage account is a Classic or
|
||||
# an Azure Resource Manager Storage account.
|
||||
attr_accessor :storage_account_version
|
||||
|
||||
# @return [AzureStorageJobExtendedInfo] Additional information about the
|
||||
# job.
|
||||
attr_accessor :extended_info
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureStorageJob class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureStorageJob',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureStorageJob',
|
||||
model_properties: {
|
||||
entity_friendly_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'entityFriendlyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
backup_management_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'backupManagementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'status',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
start_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
end_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'endTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
activity_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'activityId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobType: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'jobType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
duration: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'duration',
|
||||
type: {
|
||||
name: 'TimeSpan'
|
||||
}
|
||||
},
|
||||
actions_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'actionsInfo',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'JobSupportedActionElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'JobSupportedAction'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
error_details: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureStorageErrorInfoElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureStorageErrorInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
storage_account_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'storageAccountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
storage_account_version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'storageAccountVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
extended_info: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'extendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureStorageJobExtendedInfo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,85 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13
|
||||
module Models
|
||||
#
|
||||
# Azure Storage workload-specific additional information for job.
|
||||
#
|
||||
class AzureStorageJobExtendedInfo
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<AzureStorageJobTaskDetails>] List of tasks for this job
|
||||
attr_accessor :tasks_list
|
||||
|
||||
# @return [Hash{String => String}] Job properties.
|
||||
attr_accessor :property_bag
|
||||
|
||||
# @return [String] Non localized error message on job execution.
|
||||
attr_accessor :dynamic_error_message
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AzureStorageJobExtendedInfo class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureStorageJobExtendedInfo',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureStorageJobExtendedInfo',
|
||||
model_properties: {
|
||||
tasks_list: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tasksList',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureStorageJobTaskDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AzureStorageJobTaskDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
property_bag: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'propertyBag',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
dynamic_error_message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'dynamicErrorMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче