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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-06-01/generated/azure_mgmt_recovery_services.rb +66 -0
  3. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/auth_type.rb +1 -1
  4. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/certificate_request.rb +1 -1
  5. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_display.rb +1 -1
  6. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_log_specification.rb +1 -1
  7. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_properties.rb +1 -1
  8. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_service_specification.rb +1 -1
  9. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_response.rb +1 -1
  10. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_value_for_single_api.rb +1 -1
  11. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/jobs_summary.rb +1 -1
  12. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/monitoring_summary.rb +1 -1
  13. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/name_info.rb +1 -1
  14. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/raw_certificate_data.rb +1 -1
  15. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/replication_usage.rb +1 -1
  16. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/replication_usage_list.rb +1 -1
  17. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource.rb +1 -1
  18. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_and_aad_details.rb +1 -1
  19. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_and_acs_details.rb +1 -1
  20. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_details.rb +1 -1
  21. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/sku.rb +1 -1
  22. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/sku_name.rb +1 -1
  23. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/tracked_resource.rb +1 -1
  24. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/trigger_type.rb +1 -1
  25. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/upgrade_details.rb +1 -1
  26. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/usages_unit.rb +1 -1
  27. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault.rb +1 -1
  28. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_certificate_response.rb +1 -1
  29. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +1 -1
  30. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_list.rb +1 -1
  31. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_properties.rb +1 -1
  32. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +1 -1
  33. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_usage.rb +1 -1
  34. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_usage_list.rb +1 -1
  35. data/lib/2016-06-01/generated/azure_mgmt_recovery_services/module_definition.rb +9 -0
  36. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/operations.rb +5 -5
  37. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/recovery_services_client.rb +7 -11
  38. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/registered_identities.rb +3 -3
  39. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/replication_usages.rb +4 -4
  40. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/usages.rb +4 -4
  41. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vault_certificates.rb +5 -5
  42. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vault_extended_info_operations.rb +12 -12
  43. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vaults.rb +22 -22
  44. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/version.rb +2 -2
  45. data/lib/2016-12-01/generated/azure_mgmt_recovery_services.rb +45 -0
  46. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_storage_configs.rb +9 -9
  47. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_vault_configs.rb +10 -10
  48. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/backup_storage_config.rb +1 -1
  49. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/backup_vault_config.rb +1 -1
  50. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/enhanced_security_state.rb +1 -1
  51. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb +79 -0
  52. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku.rb +45 -0
  53. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku_name.rb +16 -0
  54. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_model_type.rb +1 -1
  55. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_type.rb +1 -1
  56. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_type_state.rb +1 -1
  57. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/tracked_resource.rb +92 -0
  58. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/trigger_type.rb +16 -0
  59. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/upgrade_details.rb +137 -0
  60. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault.rb +108 -0
  61. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +105 -0
  62. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_properties.rb +56 -0
  63. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +18 -0
  64. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/module_definition.rb +9 -0
  65. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/recovery_services_backup_client.rb +133 -0
  66. data/lib/{generated/azure_mgmt_recovery_services/module_definition.rb → 2016-12-01/generated/azure_mgmt_recovery_services/version.rb} +3 -3
  67. data/lib/azure_mgmt_recovery_services.rb +3 -1
  68. data/lib/module_definition.rb +8 -0
  69. data/lib/profiles/common/configurable.rb +73 -0
  70. data/lib/profiles/common/default.rb +68 -0
  71. data/lib/profiles/latest/modules/recoveryservices_profile_module.rb +215 -0
  72. data/lib/profiles/latest/recoveryservices_latest_profile_client.rb +33 -0
  73. data/lib/profiles/latest/recoveryservices_module_definition.rb +9 -0
  74. data/lib/version.rb +7 -0
  75. metadata +74 -53
  76. data/lib/generated/azure_mgmt_recovery_services.rb +0 -74
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -20,6 +20,9 @@ module Azure::ARM::RecoveryServices
20
20
  # @return [String] The subscription Id.
21
21
  attr_accessor :subscription_id
22
22
 
23
+ # @return [String] Client Api Version.
24
+ attr_reader :api_version
25
+
23
26
  # @return [String] Gets or sets the preferred language for the response.
24
27
  attr_accessor :accept_language
25
28
 
@@ -31,12 +34,6 @@ module Azure::ARM::RecoveryServices
31
34
  # is generated and included in each request. Default is true.
32
35
  attr_accessor :generate_client_request_id
33
36
 
34
- # @return [BackupVaultConfigs] backup_vault_configs
35
- attr_reader :backup_vault_configs
36
-
37
- # @return [BackupStorageConfigs] backup_storage_configs
38
- attr_reader :backup_storage_configs
39
-
40
37
  # @return [VaultCertificates] vault_certificates
41
38
  attr_reader :vault_certificates
42
39
 
@@ -71,8 +68,6 @@ module Azure::ARM::RecoveryServices
71
68
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
72
69
  @credentials = credentials
73
70
 
74
- @backup_vault_configs = BackupVaultConfigs.new(self)
75
- @backup_storage_configs = BackupStorageConfigs.new(self)
76
71
  @vault_certificates = VaultCertificates.new(self)
77
72
  @registered_identities = RegisteredIdentities.new(self)
78
73
  @replication_usages = ReplicationUsages.new(self)
@@ -80,6 +75,7 @@ module Azure::ARM::RecoveryServices
80
75
  @operations = Operations.new(self)
81
76
  @vault_extended_info_operations = VaultExtendedInfoOperations.new(self)
82
77
  @usages = Usages.new(self)
78
+ @api_version = '2016-06-01'
83
79
  @accept_language = 'en-US'
84
80
  @long_running_operation_retry_timeout = 30
85
81
  @generate_client_request_id = true
@@ -148,8 +144,8 @@ module Azure::ARM::RecoveryServices
148
144
  #
149
145
  def add_telemetry
150
146
  sdk_information = 'azure_mgmt_recovery_services'
151
- if defined? Azure::ARM::RecoveryServices::VERSION
152
- sdk_information = "#{sdk_information}/#{Azure::ARM::RecoveryServices::VERSION}"
147
+ if defined? Azure::RecoveryServices::Mgmt::V2016_06_01::VERSION
148
+ sdk_information = "#{sdk_information}/#{Azure::RecoveryServices::Mgmt::V2016_06_01::VERSION}"
153
149
  end
154
150
  add_user_agent_information(sdk_information)
155
151
  end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # Recovery Services Client
9
9
  #
@@ -67,7 +67,7 @@ module Azure::ARM::RecoveryServices
67
67
  #
68
68
  def delete_async(resource_group_name, vault_name, identity_name, custom_headers = nil)
69
69
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
70
- api_version = '2016-06-01'
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
71
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
72
72
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
73
73
  fail ArgumentError, 'identity_name is nil' if identity_name.nil?
@@ -85,7 +85,7 @@ module Azure::ARM::RecoveryServices
85
85
  options = {
86
86
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
87
87
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name,'identityName' => identity_name},
88
- query_params: {'api-version' => api_version},
88
+ query_params: {'api-version' => @client.api_version},
89
89
  headers: request_headers.merge(custom_headers || {}),
90
90
  base_url: request_url
91
91
  }
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # Recovery Services Client
9
9
  #
@@ -65,7 +65,7 @@ module Azure::ARM::RecoveryServices
65
65
  #
66
66
  def list_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 = '2016-06-01'
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::ARM::RecoveryServices::Models::ReplicationUsageList.mapper()
105
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsageList.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)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # Recovery Services Client
9
9
  #
@@ -65,7 +65,7 @@ module Azure::ARM::RecoveryServices
65
65
  #
66
66
  def list_by_vaults_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 = '2016-06-01'
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::ARM::RecoveryServices::Models::VaultUsageList.mapper()
105
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList.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)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # Recovery Services Client
9
9
  #
@@ -74,7 +74,7 @@ module Azure::ARM::RecoveryServices
74
74
  #
75
75
  def create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers = nil)
76
76
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
77
- api_version = '2016-06-01'
77
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
78
78
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
79
79
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
80
80
  fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
@@ -90,7 +90,7 @@ module Azure::ARM::RecoveryServices
90
90
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
91
 
92
92
  # Serialize Request
93
- request_mapper = Azure::ARM::RecoveryServices::Models::CertificateRequest.mapper()
93
+ request_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::CertificateRequest.mapper()
94
94
  request_content = @client.serialize(request_mapper, certificate_request)
95
95
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
96
96
 
@@ -101,7 +101,7 @@ module Azure::ARM::RecoveryServices
101
101
  options = {
102
102
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
103
103
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name,'certificateName' => certificate_name},
104
- query_params: {'api-version' => api_version},
104
+ query_params: {'api-version' => @client.api_version},
105
105
  body: request_content,
106
106
  headers: request_headers.merge(custom_headers || {}),
107
107
  base_url: request_url
@@ -122,7 +122,7 @@ module Azure::ARM::RecoveryServices
122
122
  if status_code == 200
123
123
  begin
124
124
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
125
- result_mapper = Azure::ARM::RecoveryServices::Models::VaultCertificateResponse.mapper()
125
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultCertificateResponse.mapper()
126
126
  result.body = @client.deserialize(result_mapper, parsed_response)
127
127
  rescue Exception => e
128
128
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # Recovery Services Client
9
9
  #
@@ -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 = '2016-06-01'
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::ARM::RecoveryServices::Models::VaultExtendedInfoResource.mapper()
105
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource.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)
@@ -167,7 +167,7 @@ module Azure::ARM::RecoveryServices
167
167
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
168
168
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
169
169
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
170
- api_version = '2016-06-01'
170
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
171
171
  fail ArgumentError, 'resource_resource_extended_info_details is nil' if resource_resource_extended_info_details.nil?
172
172
 
173
173
 
@@ -180,7 +180,7 @@ module Azure::ARM::RecoveryServices
180
180
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
181
181
 
182
182
  # Serialize Request
183
- request_mapper = Azure::ARM::RecoveryServices::Models::VaultExtendedInfoResource.mapper()
183
+ request_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource.mapper()
184
184
  request_content = @client.serialize(request_mapper, resource_resource_extended_info_details)
185
185
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
186
186
 
@@ -191,7 +191,7 @@ module Azure::ARM::RecoveryServices
191
191
  options = {
192
192
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
193
193
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
194
- query_params: {'api-version' => api_version},
194
+ query_params: {'api-version' => @client.api_version},
195
195
  body: request_content,
196
196
  headers: request_headers.merge(custom_headers || {}),
197
197
  base_url: request_url
@@ -212,7 +212,7 @@ module Azure::ARM::RecoveryServices
212
212
  if status_code == 200
213
213
  begin
214
214
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
215
- result_mapper = Azure::ARM::RecoveryServices::Models::VaultExtendedInfoResource.mapper()
215
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource.mapper()
216
216
  result.body = @client.deserialize(result_mapper, parsed_response)
217
217
  rescue Exception => e
218
218
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -277,7 +277,7 @@ module Azure::ARM::RecoveryServices
277
277
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
278
278
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
279
279
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
280
- api_version = '2016-06-01'
280
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
281
281
  fail ArgumentError, 'resource_resource_extended_info_details is nil' if resource_resource_extended_info_details.nil?
282
282
 
283
283
 
@@ -290,7 +290,7 @@ module Azure::ARM::RecoveryServices
290
290
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
291
291
 
292
292
  # Serialize Request
293
- request_mapper = Azure::ARM::RecoveryServices::Models::VaultExtendedInfoResource.mapper()
293
+ request_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource.mapper()
294
294
  request_content = @client.serialize(request_mapper, resource_resource_extended_info_details)
295
295
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
296
296
 
@@ -301,7 +301,7 @@ module Azure::ARM::RecoveryServices
301
301
  options = {
302
302
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
303
303
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
304
- query_params: {'api-version' => api_version},
304
+ query_params: {'api-version' => @client.api_version},
305
305
  body: request_content,
306
306
  headers: request_headers.merge(custom_headers || {}),
307
307
  base_url: request_url
@@ -322,7 +322,7 @@ module Azure::ARM::RecoveryServices
322
322
  if status_code == 200
323
323
  begin
324
324
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
- result_mapper = Azure::ARM::RecoveryServices::Models::VaultExtendedInfoResource.mapper()
325
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource.mapper()
326
326
  result.body = @client.deserialize(result_mapper, parsed_response)
327
327
  rescue Exception => e
328
328
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::RecoveryServices
6
+ module Azure::RecoveryServices::Mgmt::V2016_06_01
7
7
  #
8
8
  # Recovery Services Client
9
9
  #
@@ -56,7 +56,7 @@ module Azure::ARM::RecoveryServices
56
56
  #
57
57
  def list_by_subscription_id_async(custom_headers = nil)
58
58
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
59
- api_version = '2016-06-01'
59
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
60
60
 
61
61
 
62
62
  request_headers = {}
@@ -71,7 +71,7 @@ module Azure::ARM::RecoveryServices
71
71
  options = {
72
72
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
73
  path_params: {'subscriptionId' => @client.subscription_id},
74
- query_params: {'api-version' => api_version},
74
+ query_params: {'api-version' => @client.api_version},
75
75
  headers: request_headers.merge(custom_headers || {}),
76
76
  base_url: request_url
77
77
  }
@@ -91,7 +91,7 @@ module Azure::ARM::RecoveryServices
91
91
  if status_code == 200
92
92
  begin
93
93
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
94
- result_mapper = Azure::ARM::RecoveryServices::Models::VaultList.mapper()
94
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultList.mapper()
95
95
  result.body = @client.deserialize(result_mapper, parsed_response)
96
96
  rescue Exception => e
97
97
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -145,7 +145,7 @@ module Azure::ARM::RecoveryServices
145
145
  #
146
146
  def list_by_resource_group_async(resource_group_name, custom_headers = nil)
147
147
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
148
- api_version = '2016-06-01'
148
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
149
149
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
150
150
 
151
151
 
@@ -161,7 +161,7 @@ module Azure::ARM::RecoveryServices
161
161
  options = {
162
162
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
163
163
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
164
- query_params: {'api-version' => api_version},
164
+ query_params: {'api-version' => @client.api_version},
165
165
  headers: request_headers.merge(custom_headers || {}),
166
166
  base_url: request_url
167
167
  }
@@ -181,7 +181,7 @@ module Azure::ARM::RecoveryServices
181
181
  if status_code == 200
182
182
  begin
183
183
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
184
- result_mapper = Azure::ARM::RecoveryServices::Models::VaultList.mapper()
184
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultList.mapper()
185
185
  result.body = @client.deserialize(result_mapper, parsed_response)
186
186
  rescue Exception => e
187
187
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -238,7 +238,7 @@ module Azure::ARM::RecoveryServices
238
238
  #
239
239
  def get_async(resource_group_name, vault_name, custom_headers = nil)
240
240
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
241
- api_version = '2016-06-01'
241
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
242
242
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
243
243
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
244
244
 
@@ -255,7 +255,7 @@ module Azure::ARM::RecoveryServices
255
255
  options = {
256
256
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
257
257
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
258
- query_params: {'api-version' => api_version},
258
+ query_params: {'api-version' => @client.api_version},
259
259
  headers: request_headers.merge(custom_headers || {}),
260
260
  base_url: request_url
261
261
  }
@@ -275,7 +275,7 @@ module Azure::ARM::RecoveryServices
275
275
  if status_code == 200
276
276
  begin
277
277
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
278
- result_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
278
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
279
279
  result.body = @client.deserialize(result_mapper, parsed_response)
280
280
  rescue Exception => e
281
281
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -335,7 +335,7 @@ module Azure::ARM::RecoveryServices
335
335
  #
336
336
  def create_or_update_async(resource_group_name, vault_name, vault, custom_headers = nil)
337
337
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
338
- api_version = '2016-06-01'
338
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
339
339
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
340
340
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
341
341
  fail ArgumentError, 'vault is nil' if vault.nil?
@@ -350,7 +350,7 @@ module Azure::ARM::RecoveryServices
350
350
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
351
351
 
352
352
  # Serialize Request
353
- request_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
353
+ request_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
354
354
  request_content = @client.serialize(request_mapper, vault)
355
355
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
356
356
 
@@ -361,7 +361,7 @@ module Azure::ARM::RecoveryServices
361
361
  options = {
362
362
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
363
363
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
364
- query_params: {'api-version' => api_version},
364
+ query_params: {'api-version' => @client.api_version},
365
365
  body: request_content,
366
366
  headers: request_headers.merge(custom_headers || {}),
367
367
  base_url: request_url
@@ -382,7 +382,7 @@ module Azure::ARM::RecoveryServices
382
382
  if status_code == 200
383
383
  begin
384
384
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
385
- result_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
385
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
386
386
  result.body = @client.deserialize(result_mapper, parsed_response)
387
387
  rescue Exception => e
388
388
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -392,7 +392,7 @@ module Azure::ARM::RecoveryServices
392
392
  if status_code == 201
393
393
  begin
394
394
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
395
- result_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
395
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
396
396
  result.body = @client.deserialize(result_mapper, parsed_response)
397
397
  rescue Exception => e
398
398
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -448,7 +448,7 @@ module Azure::ARM::RecoveryServices
448
448
  #
449
449
  def delete_async(resource_group_name, vault_name, custom_headers = nil)
450
450
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
451
- api_version = '2016-06-01'
451
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
452
452
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
453
453
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
454
454
 
@@ -465,7 +465,7 @@ module Azure::ARM::RecoveryServices
465
465
  options = {
466
466
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
467
467
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
468
- query_params: {'api-version' => api_version},
468
+ query_params: {'api-version' => @client.api_version},
469
469
  headers: request_headers.merge(custom_headers || {}),
470
470
  base_url: request_url
471
471
  }
@@ -535,7 +535,7 @@ module Azure::ARM::RecoveryServices
535
535
  #
536
536
  def update_async(resource_group_name, vault_name, vault, custom_headers = nil)
537
537
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
538
- api_version = '2016-06-01'
538
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
539
539
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
540
540
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
541
541
  fail ArgumentError, 'vault is nil' if vault.nil?
@@ -550,7 +550,7 @@ module Azure::ARM::RecoveryServices
550
550
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
551
551
 
552
552
  # Serialize Request
553
- request_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
553
+ request_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
554
554
  request_content = @client.serialize(request_mapper, vault)
555
555
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
556
556
 
@@ -561,7 +561,7 @@ module Azure::ARM::RecoveryServices
561
561
  options = {
562
562
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
563
563
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name},
564
- query_params: {'api-version' => api_version},
564
+ query_params: {'api-version' => @client.api_version},
565
565
  body: request_content,
566
566
  headers: request_headers.merge(custom_headers || {}),
567
567
  base_url: request_url
@@ -582,7 +582,7 @@ module Azure::ARM::RecoveryServices
582
582
  if status_code == 200
583
583
  begin
584
584
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
585
- result_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
585
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
586
586
  result.body = @client.deserialize(result_mapper, parsed_response)
587
587
  rescue Exception => e
588
588
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -592,7 +592,7 @@ module Azure::ARM::RecoveryServices
592
592
  if status_code == 201
593
593
  begin
594
594
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
595
- result_mapper = Azure::ARM::RecoveryServices::Models::Vault.mapper()
595
+ result_mapper = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault.mapper()
596
596
  result.body = @client.deserialize(result_mapper, parsed_response)
597
597
  rescue Exception => e
598
598
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)