azure_mgmt_locks 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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-01-01/generated/azure_mgmt_locks.rb +31 -0
  3. data/lib/2015-01-01/generated/azure_mgmt_locks/management_lock_client.rb +131 -0
  4. data/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb +1434 -0
  5. data/lib/{generated → 2015-01-01/generated}/azure_mgmt_locks/models/lock_level.rb +1 -1
  6. data/lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_list_result.rb +94 -0
  7. data/lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb +85 -0
  8. data/lib/2015-01-01/generated/azure_mgmt_locks/module_definition.rb +9 -0
  9. data/lib/{generated → 2015-01-01/generated}/azure_mgmt_locks/version.rb +2 -2
  10. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_locks.rb +8 -8
  11. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_locks/management_lock_client.rb +3 -3
  12. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_locks/management_locks.rb +23 -23
  13. data/lib/2016-09-01/generated/azure_mgmt_locks/models/lock_level.rb +17 -0
  14. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_locks/models/management_lock_list_result.rb +1 -1
  15. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_locks/models/management_lock_object.rb +1 -1
  16. data/lib/{generated → 2016-09-01/generated}/azure_mgmt_locks/models/management_lock_owner.rb +1 -1
  17. data/lib/2016-09-01/generated/azure_mgmt_locks/module_definition.rb +9 -0
  18. data/lib/{generated/azure_mgmt_locks/module_definition.rb → 2016-09-01/generated/azure_mgmt_locks/version.rb} +3 -3
  19. data/lib/azure_mgmt_locks.rb +4 -1
  20. data/lib/module_definition.rb +7 -0
  21. data/lib/profiles/common/configurable.rb +73 -0
  22. data/lib/profiles/common/default.rb +68 -0
  23. data/lib/profiles/latest/locks_latest_profile_client.rb +33 -0
  24. data/lib/profiles/latest/locks_module_definition.rb +9 -0
  25. data/lib/profiles/latest/modules/locks_profile_module.rb +58 -0
  26. data/lib/profiles/v2017_03_09/locks_module_definition.rb +9 -0
  27. data/lib/profiles/v2017_03_09/locks_v2017_03_09_profile_client.rb +33 -0
  28. data/lib/profiles/v2017_03_09/modules/locks_profile_module.rb +54 -0
  29. data/lib/version.rb +7 -0
  30. metadata +29 -11
@@ -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::Locks
6
+ module Azure::Locks::Mgmt::V2015_01_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for LockLevel
@@ -0,0 +1,94 @@
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::Locks::Mgmt::V2015_01_01
7
+ module Models
8
+ #
9
+ # List of management locks.
10
+ #
11
+ class ManagementLockListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<ManagementLockObject>] The list of locks.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to get the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<ManagementLockObject>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [ManagementLockListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for ManagementLockListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'ManagementLockListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ManagementLockListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'ManagementLockObjectElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'ManagementLockObject'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,85 @@
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::Locks::Mgmt::V2015_01_01
7
+ module Models
8
+ #
9
+ # Management lock information.
10
+ #
11
+ class ManagementLockObject
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [LockLevel] The lock level of the management lock. Possible
16
+ # values include: 'NotSpecified', 'CanNotDelete', 'ReadOnly'
17
+ attr_accessor :level
18
+
19
+ # @return [String] The notes of the management lock.
20
+ attr_accessor :notes
21
+
22
+ # @return [String] The Id of the lock.
23
+ attr_accessor :id
24
+
25
+ # @return [String] The type of the lock.
26
+ attr_accessor :type
27
+
28
+ # @return [String] The name of the lock.
29
+ attr_accessor :name
30
+
31
+
32
+ #
33
+ # Mapper for ManagementLockObject class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ required: false,
39
+ serialized_name: 'ManagementLockObject',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ManagementLockObject',
43
+ model_properties: {
44
+ level: {
45
+ required: false,
46
+ serialized_name: 'properties.level',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ notes: {
52
+ required: false,
53
+ serialized_name: 'properties.notes',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ id: {
59
+ required: false,
60
+ serialized_name: 'id',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ type: {
66
+ required: false,
67
+ serialized_name: 'type',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ name: {
73
+ required: false,
74
+ serialized_name: 'name',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::Locks end
8
+ module Azure::Locks::Mgmt end
9
+ module Azure::Locks::Mgmt::V2015_01_01 end
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Locks
7
- VERSION = '0.14.0'
6
+ module Azure::Locks::Mgmt::V2015_01_01
7
+ VERSION = '0.15.0'
8
8
  end
@@ -16,17 +16,17 @@ require 'faraday'
16
16
  require 'faraday-cookie_jar'
17
17
  require 'concurrent'
18
18
  require 'ms_rest'
19
- require 'generated/azure_mgmt_locks/module_definition'
19
+ require '2016-09-01/generated/azure_mgmt_locks/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
- module Azure::ARM::Locks
23
- autoload :ManagementLocks, 'generated/azure_mgmt_locks/management_locks.rb'
24
- autoload :ManagementLockClient, 'generated/azure_mgmt_locks/management_lock_client.rb'
22
+ module Azure::Locks::Mgmt::V2016_09_01
23
+ autoload :ManagementLocks, '2016-09-01/generated/azure_mgmt_locks/management_locks.rb'
24
+ autoload :ManagementLockClient, '2016-09-01/generated/azure_mgmt_locks/management_lock_client.rb'
25
25
 
26
26
  module Models
27
- autoload :ManagementLockObject, 'generated/azure_mgmt_locks/models/management_lock_object.rb'
28
- autoload :ManagementLockListResult, 'generated/azure_mgmt_locks/models/management_lock_list_result.rb'
29
- autoload :ManagementLockOwner, 'generated/azure_mgmt_locks/models/management_lock_owner.rb'
30
- autoload :LockLevel, 'generated/azure_mgmt_locks/models/lock_level.rb'
27
+ autoload :ManagementLockObject, '2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb'
28
+ autoload :ManagementLockListResult, '2016-09-01/generated/azure_mgmt_locks/models/management_lock_list_result.rb'
29
+ autoload :ManagementLockOwner, '2016-09-01/generated/azure_mgmt_locks/models/management_lock_owner.rb'
30
+ autoload :LockLevel, '2016-09-01/generated/azure_mgmt_locks/models/lock_level.rb'
31
31
  end
32
32
  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::Locks
6
+ module Azure::Locks::Mgmt::V2016_09_01
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -120,8 +120,8 @@ module Azure::ARM::Locks
120
120
  #
121
121
  def add_telemetry
122
122
  sdk_information = 'azure_mgmt_locks'
123
- if defined? Azure::ARM::Locks::VERSION
124
- sdk_information = "#{sdk_information}/#{Azure::ARM::Locks::VERSION}"
123
+ if defined? Azure::Locks::Mgmt::V2016_09_01::VERSION
124
+ sdk_information = "#{sdk_information}/#{Azure::Locks::Mgmt::V2016_09_01::VERSION}"
125
125
  end
126
126
  add_user_agent_information(sdk_information)
127
127
  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::Locks
6
+ module Azure::Locks::Mgmt::V2016_09_01
7
7
  #
8
8
  # Azure resources can be locked to prevent other users in your organization
9
9
  # from deleting or modifying resources.
@@ -105,7 +105,7 @@ module Azure::ARM::Locks
105
105
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
106
106
 
107
107
  # Serialize Request
108
- request_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
108
+ request_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
109
109
  request_content = @client.serialize(request_mapper, parameters)
110
110
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
111
111
 
@@ -137,7 +137,7 @@ module Azure::ARM::Locks
137
137
  if status_code == 200
138
138
  begin
139
139
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
140
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
140
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
141
141
  result.body = @client.deserialize(result_mapper, parsed_response)
142
142
  rescue Exception => e
143
143
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -147,7 +147,7 @@ module Azure::ARM::Locks
147
147
  if status_code == 201
148
148
  begin
149
149
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
150
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
150
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
151
151
  result.body = @client.deserialize(result_mapper, parsed_response)
152
152
  rescue Exception => e
153
153
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -333,7 +333,7 @@ module Azure::ARM::Locks
333
333
  if status_code == 200
334
334
  begin
335
335
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
336
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
336
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
337
337
  result.body = @client.deserialize(result_mapper, parsed_response)
338
338
  rescue Exception => e
339
339
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -422,7 +422,7 @@ module Azure::ARM::Locks
422
422
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
423
423
 
424
424
  # Serialize Request
425
- request_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
425
+ request_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
426
426
  request_content = @client.serialize(request_mapper, parameters)
427
427
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
428
428
 
@@ -454,7 +454,7 @@ module Azure::ARM::Locks
454
454
  if status_code == 200
455
455
  begin
456
456
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
457
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
457
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
458
458
  result.body = @client.deserialize(result_mapper, parsed_response)
459
459
  rescue Exception => e
460
460
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -464,7 +464,7 @@ module Azure::ARM::Locks
464
464
  if status_code == 201
465
465
  begin
466
466
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
467
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
467
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
468
468
  result.body = @client.deserialize(result_mapper, parsed_response)
469
469
  rescue Exception => e
470
470
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -633,7 +633,7 @@ module Azure::ARM::Locks
633
633
  if status_code == 200
634
634
  begin
635
635
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
636
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
636
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
637
637
  result.body = @client.deserialize(result_mapper, parsed_response)
638
638
  rescue Exception => e
639
639
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -757,7 +757,7 @@ module Azure::ARM::Locks
757
757
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
758
758
 
759
759
  # Serialize Request
760
- request_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
760
+ request_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
761
761
  request_content = @client.serialize(request_mapper, parameters)
762
762
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
763
763
 
@@ -790,7 +790,7 @@ module Azure::ARM::Locks
790
790
  if status_code == 200
791
791
  begin
792
792
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
793
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
793
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
794
794
  result.body = @client.deserialize(result_mapper, parsed_response)
795
795
  rescue Exception => e
796
796
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -800,7 +800,7 @@ module Azure::ARM::Locks
800
800
  if status_code == 201
801
801
  begin
802
802
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
803
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
803
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
804
804
  result.body = @client.deserialize(result_mapper, parsed_response)
805
805
  rescue Exception => e
806
806
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1035,7 +1035,7 @@ module Azure::ARM::Locks
1035
1035
  if status_code == 200
1036
1036
  begin
1037
1037
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1038
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
1038
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
1039
1039
  result.body = @client.deserialize(result_mapper, parsed_response)
1040
1040
  rescue Exception => e
1041
1041
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1127,7 +1127,7 @@ module Azure::ARM::Locks
1127
1127
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1128
1128
 
1129
1129
  # Serialize Request
1130
- request_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
1130
+ request_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
1131
1131
  request_content = @client.serialize(request_mapper, parameters)
1132
1132
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1133
1133
 
@@ -1159,7 +1159,7 @@ module Azure::ARM::Locks
1159
1159
  if status_code == 201
1160
1160
  begin
1161
1161
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1162
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
1162
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
1163
1163
  result.body = @client.deserialize(result_mapper, parsed_response)
1164
1164
  rescue Exception => e
1165
1165
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1169,7 +1169,7 @@ module Azure::ARM::Locks
1169
1169
  if status_code == 200
1170
1170
  begin
1171
1171
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1172
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
1172
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
1173
1173
  result.body = @client.deserialize(result_mapper, parsed_response)
1174
1174
  rescue Exception => e
1175
1175
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1344,7 +1344,7 @@ module Azure::ARM::Locks
1344
1344
  if status_code == 200
1345
1345
  begin
1346
1346
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1347
- result_mapper = Azure::ARM::Locks::Models::ManagementLockObject.mapper()
1347
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject.mapper()
1348
1348
  result.body = @client.deserialize(result_mapper, parsed_response)
1349
1349
  rescue Exception => e
1350
1350
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1437,7 +1437,7 @@ module Azure::ARM::Locks
1437
1437
  if status_code == 200
1438
1438
  begin
1439
1439
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1440
- result_mapper = Azure::ARM::Locks::Models::ManagementLockListResult.mapper()
1440
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult.mapper()
1441
1441
  result.body = @client.deserialize(result_mapper, parsed_response)
1442
1442
  rescue Exception => e
1443
1443
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1550,7 +1550,7 @@ module Azure::ARM::Locks
1550
1550
  if status_code == 200
1551
1551
  begin
1552
1552
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1553
- result_mapper = Azure::ARM::Locks::Models::ManagementLockListResult.mapper()
1553
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult.mapper()
1554
1554
  result.body = @client.deserialize(result_mapper, parsed_response)
1555
1555
  rescue Exception => e
1556
1556
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1636,7 +1636,7 @@ module Azure::ARM::Locks
1636
1636
  if status_code == 200
1637
1637
  begin
1638
1638
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1639
- result_mapper = Azure::ARM::Locks::Models::ManagementLockListResult.mapper()
1639
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult.mapper()
1640
1640
  result.body = @client.deserialize(result_mapper, parsed_response)
1641
1641
  rescue Exception => e
1642
1642
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1723,7 +1723,7 @@ module Azure::ARM::Locks
1723
1723
  if status_code == 200
1724
1724
  begin
1725
1725
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1726
- result_mapper = Azure::ARM::Locks::Models::ManagementLockListResult.mapper()
1726
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult.mapper()
1727
1727
  result.body = @client.deserialize(result_mapper, parsed_response)
1728
1728
  rescue Exception => e
1729
1729
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1810,7 +1810,7 @@ module Azure::ARM::Locks
1810
1810
  if status_code == 200
1811
1811
  begin
1812
1812
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1813
- result_mapper = Azure::ARM::Locks::Models::ManagementLockListResult.mapper()
1813
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult.mapper()
1814
1814
  result.body = @client.deserialize(result_mapper, parsed_response)
1815
1815
  rescue Exception => e
1816
1816
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1897,7 +1897,7 @@ module Azure::ARM::Locks
1897
1897
  if status_code == 200
1898
1898
  begin
1899
1899
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1900
- result_mapper = Azure::ARM::Locks::Models::ManagementLockListResult.mapper()
1900
+ result_mapper = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult.mapper()
1901
1901
  result.body = @client.deserialize(result_mapper, parsed_response)
1902
1902
  rescue Exception => e
1903
1903
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)