azure_mgmt_recovery_services_backup 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_recovery_services_backup.rb +5 -0
- data/lib/generated/azure_mgmt_recovery_services_backup.rb +175 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +253 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +128 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +136 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backups.rb +149 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +124 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +276 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +116 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb +124 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +117 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/jobs.rb +369 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +92 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +107 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +77 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +136 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +107 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +77 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +137 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +82 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +169 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +91 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +104 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +165 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +68 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +85 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +121 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +68 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +112 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb +65 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +68 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +54 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +52 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +62 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/day.rb +54 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +92 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +62 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb +198 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +80 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +84 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb +87 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +70 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +89 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +45 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +61 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +118 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +82 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +60 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +92 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +124 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +202 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +45 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +52 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job.rb +121 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +103 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +17 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +63 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +48 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +137 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +95 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +61 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +149 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +66 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +194 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +79 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +84 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +82 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +25 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +27 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +99 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +65 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +76 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb +114 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +54 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +58 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +61 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +19 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +107 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +81 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +110 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +58 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +18 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb +18 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +45 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +60 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +19 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +17 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +17 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +60 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +108 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +19 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +70 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +81 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +80 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +119 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protectable_items.rb +276 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +142 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +154 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_items.rb +609 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +135 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +120 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +538 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +566 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +131 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +143 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +386 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +215 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/restores.rb +150 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/version.rb +8 -0
- metadata +268 -0
data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# This object filters the list of backup policies.
|
10
|
+
#
|
11
|
+
class ProtectionPolicyQueryObject
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [BackupManagementType] The backup management type associated
|
16
|
+
# with the backup policy. Possible values include: 'Invalid',
|
17
|
+
# 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql'
|
18
|
+
attr_accessor :backup_management_type
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for ProtectionPolicyQueryObject class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'ProtectionPolicyQueryObject',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'ProtectionPolicyQueryObject',
|
32
|
+
model_properties: {
|
33
|
+
backup_management_type: {
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'backupManagementType',
|
36
|
+
type: {
|
37
|
+
name: 'Enum',
|
38
|
+
module: 'BackupManagementType'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The base class for backup policy. Workload-specific backup policies are
|
10
|
+
# derived from this class.
|
11
|
+
#
|
12
|
+
class ProtectionPolicyResource < MsRestAzure::Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [ProtectionPolicy]
|
17
|
+
attr_accessor :properties
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ProtectionPolicyResource class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ProtectionPolicyResource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ProtectionPolicyResource',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'id',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
},
|
39
|
+
name: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
type: {
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'type',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
location: {
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'location',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
tags: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'tags',
|
63
|
+
type: {
|
64
|
+
name: 'Dictionary',
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'StringElementType',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
},
|
74
|
+
e_tag: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'eTag',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
properties: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties',
|
84
|
+
type: {
|
85
|
+
name: 'Composite',
|
86
|
+
polymorphic_discriminator: 'backupManagementType',
|
87
|
+
uber_parent: 'ProtectionPolicy',
|
88
|
+
class_name: 'ProtectionPolicy'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of ProtectionPolicy resources.
|
10
|
+
#
|
11
|
+
class ProtectionPolicyResourceList < ResourceList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ProtectionPolicyResource>] The list of resources.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# return [Proc] with next page method call.
|
19
|
+
attr_accessor :next_method
|
20
|
+
|
21
|
+
#
|
22
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
23
|
+
#
|
24
|
+
# @return [Array<ProtectionPolicyResource>] operation results.
|
25
|
+
#
|
26
|
+
def get_all_items
|
27
|
+
items = @value
|
28
|
+
page = self
|
29
|
+
while page.null != nil do
|
30
|
+
page = page.get_next_page
|
31
|
+
items.concat(page.value)
|
32
|
+
end
|
33
|
+
items
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Gets the next page of results.
|
38
|
+
#
|
39
|
+
# @return [ProtectionPolicyResourceList] with next page content.
|
40
|
+
#
|
41
|
+
def get_next_page
|
42
|
+
response = @next_method.call(@null).value! unless @next_method.nil?
|
43
|
+
unless response.nil?
|
44
|
+
@null = response.body.null
|
45
|
+
@value = response.body.value
|
46
|
+
self
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Mapper for ProtectionPolicyResourceList class as Ruby Hash.
|
52
|
+
# This will be used for serialization/deserialization.
|
53
|
+
#
|
54
|
+
def self.mapper()
|
55
|
+
{
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'ProtectionPolicyResourceList',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'ProtectionPolicyResourceList',
|
61
|
+
model_properties: {
|
62
|
+
next_link: {
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'nextLink',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
value: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'ProtectionPolicyResourceElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'ProtectionPolicyResource'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ProtectionState
|
10
|
+
#
|
11
|
+
module ProtectionState
|
12
|
+
Invalid = "Invalid"
|
13
|
+
IRPending = "IRPending"
|
14
|
+
Protected = "Protected"
|
15
|
+
ProtectionError = "ProtectionError"
|
16
|
+
ProtectionStopped = "ProtectionStopped"
|
17
|
+
ProtectionPaused = "ProtectionPaused"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ProtectionStatus
|
10
|
+
#
|
11
|
+
module ProtectionStatus
|
12
|
+
Invalid = "Invalid"
|
13
|
+
NotProtected = "NotProtected"
|
14
|
+
Protecting = "Protecting"
|
15
|
+
Protected = "Protected"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The base class for backup copies. Workload-specific backup copies are
|
10
|
+
# derived from this class.
|
11
|
+
#
|
12
|
+
class RecoveryPoint
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
@@discriminatorMap = Hash.new
|
17
|
+
@@discriminatorMap["IaasVMRecoveryPoint"] = "IaasVMRecoveryPoint"
|
18
|
+
@@discriminatorMap["GenericRecoveryPoint"] = "GenericRecoveryPoint"
|
19
|
+
|
20
|
+
def initialize
|
21
|
+
@objectType = "RecoveryPoint"
|
22
|
+
end
|
23
|
+
|
24
|
+
attr_accessor :objectType
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for RecoveryPoint class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'RecoveryPoint',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
polymorphic_discriminator: 'objectType',
|
38
|
+
uber_parent: 'RecoveryPoint',
|
39
|
+
class_name: 'RecoveryPoint',
|
40
|
+
model_properties: {
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The base class for backup copies. Workload-specific backup copies are
|
10
|
+
# derived from this class.
|
11
|
+
#
|
12
|
+
class RecoveryPointResource < MsRestAzure::Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [RecoveryPoint]
|
17
|
+
attr_accessor :properties
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for RecoveryPointResource class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'RecoveryPointResource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'RecoveryPointResource',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'id',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
},
|
39
|
+
name: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
type: {
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'type',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
location: {
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'location',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
tags: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'tags',
|
63
|
+
type: {
|
64
|
+
name: 'Dictionary',
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'StringElementType',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
},
|
74
|
+
e_tag: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'eTag',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
properties: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties',
|
84
|
+
type: {
|
85
|
+
name: 'Composite',
|
86
|
+
polymorphic_discriminator: 'objectType',
|
87
|
+
uber_parent: 'RecoveryPoint',
|
88
|
+
class_name: 'RecoveryPoint'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::RecoveryServicesBackup
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of RecoveryPoint resources.
|
10
|
+
#
|
11
|
+
class RecoveryPointResourceList < ResourceList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<RecoveryPointResource>] The list of resources.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# return [Proc] with next page method call.
|
19
|
+
attr_accessor :next_method
|
20
|
+
|
21
|
+
#
|
22
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
23
|
+
#
|
24
|
+
# @return [Array<RecoveryPointResource>] operation results.
|
25
|
+
#
|
26
|
+
def get_all_items
|
27
|
+
items = @value
|
28
|
+
page = self
|
29
|
+
while page.null != nil do
|
30
|
+
page = page.get_next_page
|
31
|
+
items.concat(page.value)
|
32
|
+
end
|
33
|
+
items
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Gets the next page of results.
|
38
|
+
#
|
39
|
+
# @return [RecoveryPointResourceList] with next page content.
|
40
|
+
#
|
41
|
+
def get_next_page
|
42
|
+
response = @next_method.call(@null).value! unless @next_method.nil?
|
43
|
+
unless response.nil?
|
44
|
+
@null = response.body.null
|
45
|
+
@value = response.body.value
|
46
|
+
self
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Mapper for RecoveryPointResourceList class as Ruby Hash.
|
52
|
+
# This will be used for serialization/deserialization.
|
53
|
+
#
|
54
|
+
def self.mapper()
|
55
|
+
{
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'RecoveryPointResourceList',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'RecoveryPointResourceList',
|
61
|
+
model_properties: {
|
62
|
+
next_link: {
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'nextLink',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
value: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'RecoveryPointResourceElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'RecoveryPointResource'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|