azure_mgmt_server_management 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb +37 -0
  3. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/encryption_jwk_resource.rb +5 -0
  4. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/error.rb +4 -0
  5. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/gateway_parameters.rb +4 -0
  6. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/gateway_profile.rb +11 -0
  7. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/gateway_resource.rb +19 -0
  8. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/gateway_resources.rb +4 -0
  9. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/gateway_status.rb +22 -0
  10. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/node_parameters.rb +7 -0
  11. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/node_resource.rb +12 -0
  12. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/node_resources.rb +4 -0
  13. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_parameters.rb +2 -0
  14. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb +12 -0
  15. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_results.rb +6 -0
  16. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_status.rb +13 -0
  17. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_session_resource.rb +15 -0
  18. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_session_resources.rb +4 -0
  19. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_tab_completion_parameters.rb +2 -0
  20. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_tab_completion_results.rb +3 -0
  21. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/prompt_field_description.rb +6 -0
  22. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/prompt_message_response.rb +3 -0
  23. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/resource.rb +8 -0
  24. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/session_parameters.rb +6 -0
  25. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/session_resource.rb +11 -0
  26. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/version.rb +7 -0
  27. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb +22 -0
  28. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb +35 -0
  29. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/server_management.rb +1 -3
  30. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb +15 -0
  31. data/lib/profiles/latest/servermanagement_latest_profile_client.rb +1 -3
  32. data/lib/version.rb +1 -1
  33. metadata +10 -8
  34. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/version.rb +0 -8
  35. data/lib/profiles/common/configurable.rb +0 -86
  36. data/lib/profiles/common/default.rb +0 -57
@@ -29,6 +29,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
29
29
  #
30
30
  def self.mapper()
31
31
  {
32
+ client_side_validation: true,
32
33
  required: false,
33
34
  serialized_name: 'SessionResource',
34
35
  type: {
@@ -36,6 +37,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
36
37
  class_name: 'SessionResource',
37
38
  model_properties: {
38
39
  id: {
40
+ client_side_validation: true,
39
41
  required: false,
40
42
  read_only: true,
41
43
  serialized_name: 'id',
@@ -44,6 +46,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
44
46
  }
45
47
  },
46
48
  type: {
49
+ client_side_validation: true,
47
50
  required: false,
48
51
  read_only: true,
49
52
  serialized_name: 'type',
@@ -52,6 +55,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
52
55
  }
53
56
  },
54
57
  name: {
58
+ client_side_validation: true,
55
59
  required: false,
56
60
  read_only: true,
57
61
  serialized_name: 'name',
@@ -60,6 +64,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
60
64
  }
61
65
  },
62
66
  location: {
67
+ client_side_validation: true,
63
68
  required: false,
64
69
  read_only: true,
65
70
  serialized_name: 'location',
@@ -68,11 +73,13 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
68
73
  }
69
74
  },
70
75
  tags: {
76
+ client_side_validation: true,
71
77
  required: false,
72
78
  serialized_name: 'tags',
73
79
  type: {
74
80
  name: 'Dictionary',
75
81
  value: {
82
+ client_side_validation: true,
76
83
  required: false,
77
84
  serialized_name: 'StringElementType',
78
85
  type: {
@@ -82,6 +89,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
82
89
  }
83
90
  },
84
91
  etag: {
92
+ client_side_validation: true,
85
93
  required: false,
86
94
  serialized_name: 'etag',
87
95
  type: {
@@ -89,6 +97,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
89
97
  }
90
98
  },
91
99
  user_name: {
100
+ client_side_validation: true,
92
101
  required: false,
93
102
  serialized_name: 'properties.userName',
94
103
  type: {
@@ -96,6 +105,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
96
105
  }
97
106
  },
98
107
  created: {
108
+ client_side_validation: true,
99
109
  required: false,
100
110
  serialized_name: 'properties.created',
101
111
  type: {
@@ -103,6 +113,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
103
113
  }
104
114
  },
105
115
  updated: {
116
+ client_side_validation: true,
106
117
  required: false,
107
118
  serialized_name: 'properties.updated',
108
119
  type: {
@@ -37,6 +37,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
37
37
  #
38
38
  def self.mapper()
39
39
  {
40
+ client_side_validation: true,
40
41
  required: false,
41
42
  serialized_name: 'Version',
42
43
  type: {
@@ -44,6 +45,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
44
45
  class_name: 'Version',
45
46
  model_properties: {
46
47
  major: {
48
+ client_side_validation: true,
47
49
  required: false,
48
50
  serialized_name: 'major',
49
51
  type: {
@@ -51,6 +53,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
51
53
  }
52
54
  },
53
55
  minor: {
56
+ client_side_validation: true,
54
57
  required: false,
55
58
  serialized_name: 'minor',
56
59
  type: {
@@ -58,6 +61,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
58
61
  }
59
62
  },
60
63
  build: {
64
+ client_side_validation: true,
61
65
  required: false,
62
66
  serialized_name: 'build',
63
67
  type: {
@@ -65,6 +69,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
65
69
  }
66
70
  },
67
71
  revision: {
72
+ client_side_validation: true,
68
73
  required: false,
69
74
  serialized_name: 'revision',
70
75
  type: {
@@ -72,6 +77,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
72
77
  }
73
78
  },
74
79
  major_revision: {
80
+ client_side_validation: true,
75
81
  required: false,
76
82
  serialized_name: 'majorRevision',
77
83
  type: {
@@ -79,6 +85,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
79
85
  }
80
86
  },
81
87
  minor_revision: {
88
+ client_side_validation: true,
82
89
  required: false,
83
90
  serialized_name: 'minorRevision',
84
91
  type: {
@@ -178,7 +178,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
178
178
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
179
179
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
180
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
182
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
181
183
  fail ArgumentError, 'node_name is nil' if node_name.nil?
184
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
185
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
186
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
182
187
 
183
188
 
184
189
  request_headers = {}
@@ -262,7 +267,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
262
267
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
263
268
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
264
269
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
270
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
271
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
265
272
  fail ArgumentError, 'node_name is nil' if node_name.nil?
273
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
274
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
275
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
266
276
 
267
277
 
268
278
  request_headers = {}
@@ -436,6 +446,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
436
446
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
437
447
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
438
448
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
449
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
450
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
439
451
 
440
452
 
441
453
  request_headers = {}
@@ -547,7 +559,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
547
559
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
548
560
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
549
561
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
562
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
563
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
550
564
  fail ArgumentError, 'node_name is nil' if node_name.nil?
565
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
566
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
567
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
551
568
 
552
569
  gateway_parameters = NodeParameters.new
553
570
  unless location.nil? && tags.nil? && gateway_id.nil? && connection_name.nil? && user_name.nil? && password.nil?
@@ -687,7 +704,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
687
704
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
688
705
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
689
706
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
707
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
708
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
690
709
  fail ArgumentError, 'node_name is nil' if node_name.nil?
710
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
711
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
712
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
691
713
 
692
714
  node_parameters = NodeParameters.new
693
715
  unless location.nil? && tags.nil? && gateway_id.nil? && connection_name.nil? && user_name.nil? && password.nil?
@@ -70,7 +70,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
70
70
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
71
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
72
72
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
74
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
73
75
  fail ArgumentError, 'node_name is nil' if node_name.nil?
76
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
77
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
78
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
74
79
  fail ArgumentError, 'session is nil' if session.nil?
75
80
 
76
81
 
@@ -225,7 +230,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
225
230
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
226
231
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
227
232
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
233
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
234
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
228
235
  fail ArgumentError, 'node_name is nil' if node_name.nil?
236
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
237
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
238
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
229
239
  fail ArgumentError, 'session is nil' if session.nil?
230
240
  fail ArgumentError, 'pssession is nil' if pssession.nil?
231
241
 
@@ -476,7 +486,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
476
486
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
477
487
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
478
488
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
489
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
490
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
479
491
  fail ArgumentError, 'node_name is nil' if node_name.nil?
492
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
493
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
494
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
480
495
  fail ArgumentError, 'session is nil' if session.nil?
481
496
  fail ArgumentError, 'pssession is nil' if pssession.nil?
482
497
 
@@ -591,7 +606,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
591
606
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
592
607
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
593
608
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
609
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
610
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
594
611
  fail ArgumentError, 'node_name is nil' if node_name.nil?
612
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
613
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
614
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
595
615
  fail ArgumentError, 'session is nil' if session.nil?
596
616
  fail ArgumentError, 'pssession is nil' if pssession.nil?
597
617
 
@@ -693,7 +713,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
693
713
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
694
714
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
695
715
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
716
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
717
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
696
718
  fail ArgumentError, 'node_name is nil' if node_name.nil?
719
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
720
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
721
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
697
722
  fail ArgumentError, 'session is nil' if session.nil?
698
723
  fail ArgumentError, 'pssession is nil' if pssession.nil?
699
724
 
@@ -798,7 +823,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
798
823
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
799
824
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
800
825
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
826
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
827
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
801
828
  fail ArgumentError, 'node_name is nil' if node_name.nil?
829
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
830
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
831
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
802
832
  fail ArgumentError, 'session is nil' if session.nil?
803
833
  fail ArgumentError, 'pssession is nil' if pssession.nil?
804
834
 
@@ -913,7 +943,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
913
943
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
914
944
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
915
945
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
946
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
947
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
916
948
  fail ArgumentError, 'node_name is nil' if node_name.nil?
949
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
950
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
951
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
917
952
  fail ArgumentError, 'session is nil' if session.nil?
918
953
  fail ArgumentError, 'pssession is nil' if pssession.nil?
919
954
 
@@ -134,9 +134,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
134
134
  #
135
135
  def add_telemetry
136
136
  sdk_information = 'azure_mgmt_server_management'
137
- if defined? Azure::ServerManagement::Mgmt::V2016_07_01_preview::VERSION
138
- sdk_information = "#{sdk_information}/#{Azure::ServerManagement::Mgmt::V2016_07_01_preview::VERSION}"
139
- end
137
+ sdk_information = "#{sdk_information}/0.15.2"
140
138
  add_user_agent_information(sdk_information)
141
139
  end
142
140
  end
@@ -131,7 +131,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
131
131
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
132
132
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
133
133
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
134
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
135
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
134
136
  fail ArgumentError, 'node_name is nil' if node_name.nil?
137
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
138
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
139
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
135
140
  fail ArgumentError, 'session is nil' if session.nil?
136
141
 
137
142
 
@@ -219,7 +224,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
219
224
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
220
225
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
221
226
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
227
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
228
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
222
229
  fail ArgumentError, 'node_name is nil' if node_name.nil?
230
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
231
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
232
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
223
233
  fail ArgumentError, 'session is nil' if session.nil?
224
234
 
225
235
 
@@ -341,7 +351,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
341
351
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
342
352
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
343
353
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
354
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '3'" if !resource_group_name.nil? && resource_group_name.length < 3
355
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '[a-zA-Z0-9]+'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^[a-zA-Z0-9]+$')).nil?
344
356
  fail ArgumentError, 'node_name is nil' if node_name.nil?
357
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MaxLength': '256'" if !node_name.nil? && node_name.length > 256
358
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'MinLength': '1'" if !node_name.nil? && node_name.length < 1
359
+ fail ArgumentError, "'node_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !node_name.nil? && node_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
345
360
  fail ArgumentError, 'session is nil' if session.nil?
346
361
 
347
362
  session_parameters = SessionParameters.new
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/servermanagement_module_definition'
6
6
  require 'profiles/latest/modules/servermanagement_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::ServerManagement::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < ServerManagementClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::ServerManagement::Mgmt
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_server_management
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
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-10-30 00:00:00.000000000 Z
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.9.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.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Server Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -124,11 +124,8 @@ files:
124
124
  - lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb
125
125
  - lib/2016-07-01-preview/generated/azure_mgmt_server_management/server_management.rb
126
126
  - lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb
127
- - lib/2016-07-01-preview/generated/azure_mgmt_server_management/version.rb
128
127
  - lib/azure_mgmt_server_management.rb
129
128
  - lib/module_definition.rb
130
- - lib/profiles/common/configurable.rb
131
- - lib/profiles/common/default.rb
132
129
  - lib/profiles/latest/modules/servermanagement_profile_module.rb
133
130
  - lib/profiles/latest/servermanagement_latest_profile_client.rb
134
131
  - lib/profiles/latest/servermanagement_module_definition.rb
@@ -136,7 +133,12 @@ files:
136
133
  homepage: https://aka.ms/azure-sdk-for-ruby
137
134
  licenses:
138
135
  - MIT
139
- metadata: {}
136
+ metadata:
137
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
138
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
139
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
140
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
141
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_server_management
140
142
  post_install_message:
141
143
  rdoc_options: []
142
144
  require_paths:
@@ -1,8 +0,0 @@
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::ServerManagement::Mgmt::V2016_07_01_preview
7
- VERSION = '0.15.1'
8
- end
@@ -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