azure_mgmt_locks 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-01-01/generated/azure_mgmt_locks/management_lock_client.rb +1 -3
- data/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb +21 -0
- data/lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_list_result.rb +4 -0
- data/lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb +6 -0
- data/lib/2016-09-01/generated/azure_mgmt_locks/management_lock_client.rb +1 -3
- data/lib/2016-09-01/generated/azure_mgmt_locks/management_locks.rb +24 -0
- data/lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_list_result.rb +4 -0
- data/lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb +8 -0
- data/lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_owner.rb +2 -0
- data/lib/profiles/latest/locks_latest_profile_client.rb +1 -3
- data/lib/profiles/v2017_03_09/locks_v2017_03_09_profile_client.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +10 -9
- data/lib/2015-01-01/generated/azure_mgmt_locks/version.rb +0 -8
- data/lib/2016-09-01/generated/azure_mgmt_locks/version.rb +0 -8
- data/lib/profiles/common/configurable.rb +0 -86
- data/lib/profiles/common/default.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 103dbd191fd9ce2dbf5b6f3b9aaf5852de8c4c5d
|
4
|
+
data.tar.gz: 19230271ad535f69c013a97a2fe3a1e8bc5382b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604e4d15fe8dcaf29569960c829f678c74af1e9b3fccf321fad4e98d1181a00d96a37a8e31edc1fda4e854dd010612c8d7efa7e49138388d35edddedbfa10d0a
|
7
|
+
data.tar.gz: d48ade849ee5e1adfb49393a013da7f18c0f9f1c874fa4ddc5421ec3e0828e5b1c3d0f7a4297a955fac8adca74f576e96c8d5de2d26018f3d4aa6748e42630aa
|
@@ -122,9 +122,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
122
122
|
#
|
123
123
|
def add_telemetry
|
124
124
|
sdk_information = 'azure_mgmt_locks'
|
125
|
-
|
126
|
-
sdk_information = "#{sdk_information}/#{Azure::Locks::Mgmt::V2015_01_01::VERSION}"
|
127
|
-
end
|
125
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
128
126
|
add_user_agent_information(sdk_information)
|
129
127
|
end
|
130
128
|
end
|
@@ -65,6 +65,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
65
65
|
#
|
66
66
|
def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers = nil)
|
67
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
70
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
68
71
|
fail ArgumentError, 'lock_name is nil' if lock_name.nil?
|
69
72
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
70
73
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -175,6 +178,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
175
178
|
#
|
176
179
|
def delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil)
|
177
180
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
181
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
182
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
183
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
178
184
|
fail ArgumentError, 'lock_name is nil' if lock_name.nil?
|
179
185
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
180
186
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -256,6 +262,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
256
262
|
#
|
257
263
|
def get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil)
|
258
264
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
265
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
266
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
267
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
259
268
|
fail ArgumentError, 'lock_name is nil' if lock_name.nil?
|
260
269
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
261
270
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -368,6 +377,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
368
377
|
#
|
369
378
|
def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil)
|
370
379
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
380
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
381
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
382
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
371
383
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
372
384
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
373
385
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -495,6 +507,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
495
507
|
#
|
496
508
|
def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
|
497
509
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
510
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
511
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
512
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
498
513
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
499
514
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
500
515
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -854,6 +869,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
854
869
|
#
|
855
870
|
def list_at_resource_group_level_async(resource_group_name, filter = nil, custom_headers = nil)
|
856
871
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
872
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
873
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
874
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
857
875
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
858
876
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
859
877
|
|
@@ -959,6 +977,9 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
959
977
|
#
|
960
978
|
def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
|
961
979
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
980
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
981
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
982
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
962
983
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
963
984
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
964
985
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -57,6 +57,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'ManagementLockListResult',
|
62
63
|
type: {
|
@@ -64,11 +65,13 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
64
65
|
class_name: 'ManagementLockListResult',
|
65
66
|
model_properties: {
|
66
67
|
value: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'value',
|
69
71
|
type: {
|
70
72
|
name: 'Sequence',
|
71
73
|
element: {
|
74
|
+
client_side_validation: true,
|
72
75
|
required: false,
|
73
76
|
serialized_name: 'ManagementLockObjectElementType',
|
74
77
|
type: {
|
@@ -79,6 +82,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
79
82
|
}
|
80
83
|
},
|
81
84
|
next_link: {
|
85
|
+
client_side_validation: true,
|
82
86
|
required: false,
|
83
87
|
serialized_name: 'nextLink',
|
84
88
|
type: {
|
@@ -35,6 +35,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
35
35
|
#
|
36
36
|
def self.mapper()
|
37
37
|
{
|
38
|
+
client_side_validation: true,
|
38
39
|
required: false,
|
39
40
|
serialized_name: 'ManagementLockObject',
|
40
41
|
type: {
|
@@ -42,6 +43,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
42
43
|
class_name: 'ManagementLockObject',
|
43
44
|
model_properties: {
|
44
45
|
level: {
|
46
|
+
client_side_validation: true,
|
45
47
|
required: false,
|
46
48
|
serialized_name: 'properties.level',
|
47
49
|
type: {
|
@@ -49,6 +51,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
49
51
|
}
|
50
52
|
},
|
51
53
|
notes: {
|
54
|
+
client_side_validation: true,
|
52
55
|
required: false,
|
53
56
|
serialized_name: 'properties.notes',
|
54
57
|
type: {
|
@@ -56,6 +59,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
56
59
|
}
|
57
60
|
},
|
58
61
|
id: {
|
62
|
+
client_side_validation: true,
|
59
63
|
required: false,
|
60
64
|
serialized_name: 'id',
|
61
65
|
type: {
|
@@ -63,6 +67,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
63
67
|
}
|
64
68
|
},
|
65
69
|
type: {
|
70
|
+
client_side_validation: true,
|
66
71
|
required: false,
|
67
72
|
serialized_name: 'type',
|
68
73
|
type: {
|
@@ -70,6 +75,7 @@ module Azure::Locks::Mgmt::V2015_01_01
|
|
70
75
|
}
|
71
76
|
},
|
72
77
|
name: {
|
78
|
+
client_side_validation: true,
|
73
79
|
required: false,
|
74
80
|
serialized_name: 'name',
|
75
81
|
type: {
|
@@ -120,9 +120,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
120
120
|
#
|
121
121
|
def add_telemetry
|
122
122
|
sdk_information = 'azure_mgmt_locks'
|
123
|
-
|
124
|
-
sdk_information = "#{sdk_information}/#{Azure::Locks::Mgmt::V2016_09_01::VERSION}"
|
125
|
-
end
|
123
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
126
124
|
add_user_agent_information(sdk_information)
|
127
125
|
end
|
128
126
|
end
|
@@ -90,6 +90,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
90
90
|
#
|
91
91
|
def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers = nil)
|
92
92
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
93
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
94
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
95
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
93
96
|
fail ArgumentError, 'lock_name is nil' if lock_name.nil?
|
94
97
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
95
98
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -215,6 +218,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
215
218
|
#
|
216
219
|
def delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil)
|
217
220
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
221
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
222
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
223
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
218
224
|
fail ArgumentError, 'lock_name is nil' if lock_name.nil?
|
219
225
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
220
226
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -296,6 +302,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
296
302
|
#
|
297
303
|
def get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil)
|
298
304
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
305
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
306
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
307
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
299
308
|
fail ArgumentError, 'lock_name is nil' if lock_name.nil?
|
300
309
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
301
310
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -738,6 +747,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
738
747
|
#
|
739
748
|
def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil)
|
740
749
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
750
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
751
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
752
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
741
753
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
742
754
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
743
755
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -889,6 +901,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
889
901
|
#
|
890
902
|
def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
|
891
903
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
904
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
905
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
906
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
892
907
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
893
908
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
894
909
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -993,6 +1008,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
993
1008
|
#
|
994
1009
|
def get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
|
995
1010
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1011
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1012
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1013
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
996
1014
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
997
1015
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
998
1016
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -1401,6 +1419,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
1401
1419
|
#
|
1402
1420
|
def list_at_resource_group_level_async(resource_group_name, filter = nil, custom_headers = nil)
|
1403
1421
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1422
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1423
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1424
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1404
1425
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1405
1426
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1406
1427
|
|
@@ -1509,6 +1530,9 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
1509
1530
|
#
|
1510
1531
|
def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
|
1511
1532
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1533
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1534
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1535
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1512
1536
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
1513
1537
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
1514
1538
|
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
@@ -57,6 +57,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
57
57
|
#
|
58
58
|
def self.mapper()
|
59
59
|
{
|
60
|
+
client_side_validation: true,
|
60
61
|
required: false,
|
61
62
|
serialized_name: 'ManagementLockListResult',
|
62
63
|
type: {
|
@@ -64,11 +65,13 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
64
65
|
class_name: 'ManagementLockListResult',
|
65
66
|
model_properties: {
|
66
67
|
value: {
|
68
|
+
client_side_validation: true,
|
67
69
|
required: false,
|
68
70
|
serialized_name: 'value',
|
69
71
|
type: {
|
70
72
|
name: 'Sequence',
|
71
73
|
element: {
|
74
|
+
client_side_validation: true,
|
72
75
|
required: false,
|
73
76
|
serialized_name: 'ManagementLockObjectElementType',
|
74
77
|
type: {
|
@@ -79,6 +82,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
79
82
|
}
|
80
83
|
},
|
81
84
|
next_link: {
|
85
|
+
client_side_validation: true,
|
82
86
|
required: false,
|
83
87
|
serialized_name: 'nextLink',
|
84
88
|
type: {
|
@@ -43,6 +43,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
43
43
|
#
|
44
44
|
def self.mapper()
|
45
45
|
{
|
46
|
+
client_side_validation: true,
|
46
47
|
required: false,
|
47
48
|
serialized_name: 'ManagementLockObject',
|
48
49
|
type: {
|
@@ -50,6 +51,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
50
51
|
class_name: 'ManagementLockObject',
|
51
52
|
model_properties: {
|
52
53
|
level: {
|
54
|
+
client_side_validation: true,
|
53
55
|
required: true,
|
54
56
|
serialized_name: 'properties.level',
|
55
57
|
type: {
|
@@ -57,6 +59,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
57
59
|
}
|
58
60
|
},
|
59
61
|
notes: {
|
62
|
+
client_side_validation: true,
|
60
63
|
required: false,
|
61
64
|
serialized_name: 'properties.notes',
|
62
65
|
type: {
|
@@ -64,11 +67,13 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
64
67
|
}
|
65
68
|
},
|
66
69
|
owners: {
|
70
|
+
client_side_validation: true,
|
67
71
|
required: false,
|
68
72
|
serialized_name: 'properties.owners',
|
69
73
|
type: {
|
70
74
|
name: 'Sequence',
|
71
75
|
element: {
|
76
|
+
client_side_validation: true,
|
72
77
|
required: false,
|
73
78
|
serialized_name: 'ManagementLockOwnerElementType',
|
74
79
|
type: {
|
@@ -79,6 +84,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
79
84
|
}
|
80
85
|
},
|
81
86
|
id: {
|
87
|
+
client_side_validation: true,
|
82
88
|
required: false,
|
83
89
|
read_only: true,
|
84
90
|
serialized_name: 'id',
|
@@ -87,6 +93,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
87
93
|
}
|
88
94
|
},
|
89
95
|
type: {
|
96
|
+
client_side_validation: true,
|
90
97
|
required: false,
|
91
98
|
read_only: true,
|
92
99
|
serialized_name: 'type',
|
@@ -95,6 +102,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
95
102
|
}
|
96
103
|
},
|
97
104
|
name: {
|
105
|
+
client_side_validation: true,
|
98
106
|
required: false,
|
99
107
|
serialized_name: 'name',
|
100
108
|
type: {
|
@@ -22,6 +22,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
22
22
|
#
|
23
23
|
def self.mapper()
|
24
24
|
{
|
25
|
+
client_side_validation: true,
|
25
26
|
required: false,
|
26
27
|
serialized_name: 'ManagementLockOwner',
|
27
28
|
type: {
|
@@ -29,6 +30,7 @@ module Azure::Locks::Mgmt::V2016_09_01
|
|
29
30
|
class_name: 'ManagementLockOwner',
|
30
31
|
model_properties: {
|
31
32
|
application_id: {
|
33
|
+
client_side_validation: true,
|
32
34
|
required: false,
|
33
35
|
serialized_name: 'applicationId',
|
34
36
|
type: {
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/latest/locks_module_definition'
|
6
6
|
require 'profiles/latest/modules/locks_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::Locks::Profiles::Latest::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the Latest profile SDK.
|
13
11
|
#
|
14
12
|
class Client < LocksClass
|
15
|
-
include
|
13
|
+
include MsRestAzure::Common::Configurable
|
16
14
|
|
17
15
|
|
18
16
|
def initialize(options = {})
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/v2017_03_09/locks_module_definition'
|
6
6
|
require 'profiles/v2017_03_09/modules/locks_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::Locks::Profiles::V2017_03_09::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the V2017_03_09 profile SDK.
|
13
11
|
#
|
14
12
|
class Client < LocksClass
|
15
|
-
include
|
13
|
+
include MsRestAzure::Common::Configurable
|
16
14
|
|
17
15
|
|
18
16
|
def initialize(options = {})
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_locks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.10.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.10.0
|
83
83
|
description: Microsoft Azure Resource Lock Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -94,7 +94,6 @@ files:
|
|
94
94
|
- lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_list_result.rb
|
95
95
|
- lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb
|
96
96
|
- lib/2015-01-01/generated/azure_mgmt_locks/module_definition.rb
|
97
|
-
- lib/2015-01-01/generated/azure_mgmt_locks/version.rb
|
98
97
|
- lib/2016-09-01/generated/azure_mgmt_locks.rb
|
99
98
|
- lib/2016-09-01/generated/azure_mgmt_locks/management_lock_client.rb
|
100
99
|
- lib/2016-09-01/generated/azure_mgmt_locks/management_locks.rb
|
@@ -103,11 +102,8 @@ files:
|
|
103
102
|
- lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb
|
104
103
|
- lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_owner.rb
|
105
104
|
- lib/2016-09-01/generated/azure_mgmt_locks/module_definition.rb
|
106
|
-
- lib/2016-09-01/generated/azure_mgmt_locks/version.rb
|
107
105
|
- lib/azure_mgmt_locks.rb
|
108
106
|
- lib/module_definition.rb
|
109
|
-
- lib/profiles/common/configurable.rb
|
110
|
-
- lib/profiles/common/default.rb
|
111
107
|
- lib/profiles/latest/locks_latest_profile_client.rb
|
112
108
|
- lib/profiles/latest/locks_module_definition.rb
|
113
109
|
- lib/profiles/latest/modules/locks_profile_module.rb
|
@@ -118,7 +114,12 @@ files:
|
|
118
114
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
119
115
|
licenses:
|
120
116
|
- MIT
|
121
|
-
metadata:
|
117
|
+
metadata:
|
118
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
119
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
120
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
121
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
122
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_locks
|
122
123
|
post_install_message:
|
123
124
|
rdoc_options: []
|
124
125
|
require_paths:
|
@@ -1,86 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
-
|
5
|
-
module Azure::Common
|
6
|
-
# The Azure::Common::Configurable module provides basic configuration for Azure activities.
|
7
|
-
module Configurable
|
8
|
-
# @return [String] Azure tenant id (also known as domain).
|
9
|
-
attr_accessor :tenant_id
|
10
|
-
|
11
|
-
# @return [String] Azure client id.
|
12
|
-
attr_accessor :client_id
|
13
|
-
|
14
|
-
# @return [String] Azure secret key.
|
15
|
-
attr_accessor :client_secret
|
16
|
-
|
17
|
-
# @return [String] Azure subscription id.
|
18
|
-
attr_accessor :subscription_id
|
19
|
-
|
20
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
-
attr_accessor :active_directory_settings
|
22
|
-
|
23
|
-
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
-
attr_accessor :credentials
|
25
|
-
|
26
|
-
class << self
|
27
|
-
#
|
28
|
-
# List of configurable keys for {Azure::Common::Client}.
|
29
|
-
# @return [Array] of option keys.
|
30
|
-
#
|
31
|
-
def keys
|
32
|
-
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# Set configuration options using a block.
|
38
|
-
#
|
39
|
-
def configure
|
40
|
-
yield self
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# Resets the configurable options to provided options or defaults.
|
45
|
-
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
-
#
|
47
|
-
def reset!(options = {})
|
48
|
-
Azure::Common::Configurable.keys.each do |key|
|
49
|
-
default_value = Azure::Common::Default.options[key]
|
50
|
-
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
-
end
|
52
|
-
|
53
|
-
fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
|
54
|
-
fail ArgumentError, 'client_id is nil' if self.client_id.nil?
|
55
|
-
fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
|
56
|
-
fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
|
57
|
-
fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
|
58
|
-
|
59
|
-
default_value = MsRest::TokenCredentials.new(
|
60
|
-
MsRestAzure::ApplicationTokenProvider.new(
|
61
|
-
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
62
|
-
|
63
|
-
instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
|
64
|
-
|
65
|
-
self
|
66
|
-
end
|
67
|
-
|
68
|
-
def config
|
69
|
-
self
|
70
|
-
end
|
71
|
-
|
72
|
-
private
|
73
|
-
|
74
|
-
#
|
75
|
-
# configures configurable options to default values
|
76
|
-
#
|
77
|
-
def setup_default_options
|
78
|
-
opts = {}
|
79
|
-
Azure::Common::Configurable.keys.map do |key|
|
80
|
-
opts[key] = Azure::Common::Default.options[key]
|
81
|
-
end
|
82
|
-
|
83
|
-
opts
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
-
|
5
|
-
module Azure::Common
|
6
|
-
module Default
|
7
|
-
class << self
|
8
|
-
#
|
9
|
-
# Default Azure Tenant Id.
|
10
|
-
# @return [String] Azure Tenant Id.
|
11
|
-
#
|
12
|
-
def tenant_id
|
13
|
-
ENV['AZURE_TENANT_ID']
|
14
|
-
end
|
15
|
-
|
16
|
-
#
|
17
|
-
# Default Azure Client Id.
|
18
|
-
# @return [String] Azure Client Id.
|
19
|
-
#
|
20
|
-
def client_id
|
21
|
-
ENV['AZURE_CLIENT_ID']
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
# Default Azure Client Secret.
|
26
|
-
# @return [String] Azure Client Secret.
|
27
|
-
#
|
28
|
-
def client_secret
|
29
|
-
ENV['AZURE_CLIENT_SECRET']
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# Default Azure Subscription Id.
|
34
|
-
# @return [String] Azure Subscription Id.
|
35
|
-
#
|
36
|
-
def subscription_id
|
37
|
-
ENV['AZURE_SUBSCRIPTION_ID']
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Default Azure Active Directory Service Settings.
|
42
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
43
|
-
#
|
44
|
-
def active_directory_settings
|
45
|
-
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Configuration options.
|
50
|
-
# @return [Hash] Configuration options.
|
51
|
-
#
|
52
|
-
def options
|
53
|
-
Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|