azure_mgmt_recovery_services 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services.rb +66 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/auth_type.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/certificate_request.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_display.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_log_specification.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_properties.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_service_specification.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_response.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_value_for_single_api.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/jobs_summary.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/monitoring_summary.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/name_info.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/raw_certificate_data.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/replication_usage.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/replication_usage_list.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_and_aad_details.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_and_acs_details.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_details.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/sku.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/sku_name.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/tracked_resource.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/trigger_type.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/upgrade_details.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/usages_unit.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_certificate_response.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_list.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_properties.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_usage.rb +1 -1
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_usage_list.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/module_definition.rb +9 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/operations.rb +5 -5
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/recovery_services_client.rb +7 -11
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/registered_identities.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/replication_usages.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/usages.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vault_certificates.rb +5 -5
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vault_extended_info_operations.rb +12 -12
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vaults.rb +22 -22
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/version.rb +2 -2
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services.rb +45 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_storage_configs.rb +9 -9
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_vault_configs.rb +10 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/backup_storage_config.rb +1 -1
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/backup_vault_config.rb +1 -1
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/enhanced_security_state.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb +79 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku.rb +45 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku_name.rb +16 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_model_type.rb +1 -1
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_type.rb +1 -1
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_type_state.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/tracked_resource.rb +92 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/trigger_type.rb +16 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/upgrade_details.rb +137 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault.rb +108 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +105 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_properties.rb +56 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +18 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/module_definition.rb +9 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/recovery_services_backup_client.rb +133 -0
- data/lib/{generated/azure_mgmt_recovery_services/module_definition.rb → 2016-12-01/generated/azure_mgmt_recovery_services/version.rb} +3 -3
- data/lib/azure_mgmt_recovery_services.rb +3 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/recoveryservices_profile_module.rb +215 -0
- data/lib/profiles/latest/recoveryservices_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/recoveryservices_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +74 -53
- data/lib/generated/azure_mgmt_recovery_services.rb +0 -74
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2016-12-01/generated/azure_mgmt_recovery_services/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
23
|
+
autoload :BackupVaultConfigs, '2016-12-01/generated/azure_mgmt_recovery_services/backup_vault_configs.rb'
|
24
|
+
autoload :BackupStorageConfigs, '2016-12-01/generated/azure_mgmt_recovery_services/backup_storage_configs.rb'
|
25
|
+
autoload :RecoveryServicesBackupClient, '2016-12-01/generated/azure_mgmt_recovery_services/recovery_services_backup_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :UpgradeDetails, '2016-12-01/generated/azure_mgmt_recovery_services/models/upgrade_details.rb'
|
29
|
+
autoload :VaultProperties, '2016-12-01/generated/azure_mgmt_recovery_services/models/vault_properties.rb'
|
30
|
+
autoload :Sku, '2016-12-01/generated/azure_mgmt_recovery_services/models/sku.rb'
|
31
|
+
autoload :Resource, '2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb'
|
32
|
+
autoload :BackupStorageConfig, '2016-12-01/generated/azure_mgmt_recovery_services/models/backup_storage_config.rb'
|
33
|
+
autoload :BackupVaultConfig, '2016-12-01/generated/azure_mgmt_recovery_services/models/backup_vault_config.rb'
|
34
|
+
autoload :VaultExtendedInfoResource, '2016-12-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb'
|
35
|
+
autoload :TrackedResource, '2016-12-01/generated/azure_mgmt_recovery_services/models/tracked_resource.rb'
|
36
|
+
autoload :Vault, '2016-12-01/generated/azure_mgmt_recovery_services/models/vault.rb'
|
37
|
+
autoload :StorageModelType, '2016-12-01/generated/azure_mgmt_recovery_services/models/storage_model_type.rb'
|
38
|
+
autoload :StorageType, '2016-12-01/generated/azure_mgmt_recovery_services/models/storage_type.rb'
|
39
|
+
autoload :StorageTypeState, '2016-12-01/generated/azure_mgmt_recovery_services/models/storage_type_state.rb'
|
40
|
+
autoload :EnhancedSecurityState, '2016-12-01/generated/azure_mgmt_recovery_services/models/enhanced_security_state.rb'
|
41
|
+
autoload :SkuName, '2016-12-01/generated/azure_mgmt_recovery_services/models/sku_name.rb'
|
42
|
+
autoload :VaultUpgradeState, '2016-12-01/generated/azure_mgmt_recovery_services/models/vault_upgrade_state.rb'
|
43
|
+
autoload :TriggerType, '2016-12-01/generated/azure_mgmt_recovery_services/models/trigger_type.rb'
|
44
|
+
end
|
45
|
+
end
|
data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_storage_configs.rb
RENAMED
@@ -3,9 +3,9 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# BackupStorageConfigs
|
9
9
|
#
|
10
10
|
class BackupStorageConfigs
|
11
11
|
include MsRestAzure
|
@@ -18,7 +18,7 @@ module Azure::ARM::RecoveryServices
|
|
18
18
|
@client = client
|
19
19
|
end
|
20
20
|
|
21
|
-
# @return [
|
21
|
+
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
@@ -65,7 +65,7 @@ module Azure::ARM::RecoveryServices
|
|
65
65
|
#
|
66
66
|
def get_async(resource_group_name, vault_name, custom_headers = nil)
|
67
67
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
-
api_version
|
68
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
69
69
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
70
70
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
71
71
|
|
@@ -82,7 +82,7 @@ module Azure::ARM::RecoveryServices
|
|
82
82
|
options = {
|
83
83
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
84
84
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
|
85
|
-
query_params: {'api-version' => api_version},
|
85
|
+
query_params: {'api-version' => @client.api_version},
|
86
86
|
headers: request_headers.merge(custom_headers || {}),
|
87
87
|
base_url: request_url
|
88
88
|
}
|
@@ -102,7 +102,7 @@ module Azure::ARM::RecoveryServices
|
|
102
102
|
if status_code == 200
|
103
103
|
begin
|
104
104
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
105
|
-
result_mapper = Azure::
|
105
|
+
result_mapper = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupStorageConfig.mapper()
|
106
106
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
107
107
|
rescue Exception => e
|
108
108
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -161,7 +161,7 @@ module Azure::ARM::RecoveryServices
|
|
161
161
|
#
|
162
162
|
def update_async(resource_group_name, vault_name, backup_storage_config, custom_headers = nil)
|
163
163
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
164
|
-
api_version
|
164
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
165
165
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
166
166
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
167
167
|
fail ArgumentError, 'backup_storage_config is nil' if backup_storage_config.nil?
|
@@ -176,7 +176,7 @@ module Azure::ARM::RecoveryServices
|
|
176
176
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
177
177
|
|
178
178
|
# Serialize Request
|
179
|
-
request_mapper = Azure::
|
179
|
+
request_mapper = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupStorageConfig.mapper()
|
180
180
|
request_content = @client.serialize(request_mapper, backup_storage_config)
|
181
181
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
182
182
|
|
@@ -187,7 +187,7 @@ module Azure::ARM::RecoveryServices
|
|
187
187
|
options = {
|
188
188
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
189
189
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
|
190
|
-
query_params: {'api-version' => api_version},
|
190
|
+
query_params: {'api-version' => @client.api_version},
|
191
191
|
body: request_content,
|
192
192
|
headers: request_headers.merge(custom_headers || {}),
|
193
193
|
base_url: request_url
|
data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_vault_configs.rb
RENAMED
@@ -3,9 +3,9 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# BackupVaultConfigs
|
9
9
|
#
|
10
10
|
class BackupVaultConfigs
|
11
11
|
include MsRestAzure
|
@@ -18,7 +18,7 @@ module Azure::ARM::RecoveryServices
|
|
18
18
|
@client = client
|
19
19
|
end
|
20
20
|
|
21
|
-
# @return [
|
21
|
+
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
@@ -65,7 +65,7 @@ module Azure::ARM::RecoveryServices
|
|
65
65
|
#
|
66
66
|
def get_async(resource_group_name, vault_name, custom_headers = nil)
|
67
67
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
-
api_version
|
68
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
69
69
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
70
70
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
71
71
|
|
@@ -82,7 +82,7 @@ module Azure::ARM::RecoveryServices
|
|
82
82
|
options = {
|
83
83
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
84
84
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
|
85
|
-
query_params: {'api-version' => api_version},
|
85
|
+
query_params: {'api-version' => @client.api_version},
|
86
86
|
headers: request_headers.merge(custom_headers || {}),
|
87
87
|
base_url: request_url
|
88
88
|
}
|
@@ -102,7 +102,7 @@ module Azure::ARM::RecoveryServices
|
|
102
102
|
if status_code == 200
|
103
103
|
begin
|
104
104
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
105
|
-
result_mapper = Azure::
|
105
|
+
result_mapper = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupVaultConfig.mapper()
|
106
106
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
107
107
|
rescue Exception => e
|
108
108
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -162,7 +162,7 @@ module Azure::ARM::RecoveryServices
|
|
162
162
|
#
|
163
163
|
def update_async(resource_group_name, vault_name, backup_vault_config, custom_headers = nil)
|
164
164
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
165
|
-
api_version
|
165
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
166
166
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
167
167
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
168
168
|
fail ArgumentError, 'backup_vault_config is nil' if backup_vault_config.nil?
|
@@ -177,7 +177,7 @@ module Azure::ARM::RecoveryServices
|
|
177
177
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
178
178
|
|
179
179
|
# Serialize Request
|
180
|
-
request_mapper = Azure::
|
180
|
+
request_mapper = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupVaultConfig.mapper()
|
181
181
|
request_content = @client.serialize(request_mapper, backup_vault_config)
|
182
182
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
183
183
|
|
@@ -188,7 +188,7 @@ module Azure::ARM::RecoveryServices
|
|
188
188
|
options = {
|
189
189
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
190
190
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
|
191
|
-
query_params: {'api-version' => api_version},
|
191
|
+
query_params: {'api-version' => @client.api_version},
|
192
192
|
body: request_content,
|
193
193
|
headers: request_headers.merge(custom_headers || {}),
|
194
194
|
base_url: request_url
|
@@ -209,7 +209,7 @@ module Azure::ARM::RecoveryServices
|
|
209
209
|
if status_code == 200
|
210
210
|
begin
|
211
211
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
212
|
-
result_mapper = Azure::
|
212
|
+
result_mapper = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupVaultConfig.mapper()
|
213
213
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
214
214
|
rescue Exception => e
|
215
215
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# ARM Resource.
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource Id represents the complete path to the
|
16
|
+
# resource.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] Resource name associated with the resource.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [String] Resource type represents the complete path of the form
|
23
|
+
# Namespace/ResourceType/ResourceType/...
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
# @return [String] Optional ETag.
|
27
|
+
attr_accessor :e_tag
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for Resource class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'Resource',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'Resource',
|
41
|
+
model_properties: {
|
42
|
+
id: {
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
name: {
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'name',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
type: {
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'type',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
e_tag: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'eTag',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Identifies the unique system identifier for each Azure resource.
|
10
|
+
#
|
11
|
+
class Sku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SkuName] The Sku name. Possible values include: 'Standard',
|
16
|
+
# 'RS0'
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for Sku class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'Sku',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'Sku',
|
31
|
+
model_properties: {
|
32
|
+
name: {
|
33
|
+
required: true,
|
34
|
+
serialized_name: 'name',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuName
|
10
|
+
#
|
11
|
+
module SkuName
|
12
|
+
Standard = "Standard"
|
13
|
+
RS0 = "RS0"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_12_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Tracked resource with location.
|
10
|
+
#
|
11
|
+
class TrackedResource < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource location.
|
16
|
+
attr_accessor :location
|
17
|
+
|
18
|
+
# @return [Hash{String => String}] Resource tags.
|
19
|
+
attr_accessor :tags
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for TrackedResource class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'TrackedResource',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'TrackedResource',
|
33
|
+
model_properties: {
|
34
|
+
id: {
|
35
|
+
required: false,
|
36
|
+
read_only: true,
|
37
|
+
serialized_name: 'id',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
name: {
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'type',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
e_tag: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'eTag',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
location: {
|
66
|
+
required: true,
|
67
|
+
serialized_name: 'location',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
tags: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'tags',
|
75
|
+
type: {
|
76
|
+
name: 'Dictionary',
|
77
|
+
value: {
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'StringElementType',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|