azure_mgmt_analysis_services 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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +1 -3
  3. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +13 -0
  4. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +6 -0
  5. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +3 -0
  6. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource.rb +8 -0
  7. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource_sku.rb +3 -0
  8. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb +3 -0
  9. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +2 -0
  10. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +3 -0
  11. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +3 -0
  12. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb +45 -0
  13. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +1 -3
  14. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +14 -0
  15. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +7 -0
  16. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +3 -0
  17. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb +4 -0
  18. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb +3 -0
  19. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb +2 -0
  20. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb +2 -0
  21. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb +8 -0
  22. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb +3 -0
  23. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb +3 -0
  24. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +2 -0
  25. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +3 -0
  26. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +3 -0
  27. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb +57 -0
  28. data/lib/profiles/latest/analysisservices_latest_profile_client.rb +1 -3
  29. data/lib/version.rb +1 -1
  30. metadata +10 -9
  31. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/version.rb +0 -8
  32. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/version.rb +0 -8
  33. data/lib/profiles/common/configurable.rb +0 -86
  34. data/lib/profiles/common/default.rb +0 -57
@@ -121,9 +121,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
121
121
  #
122
122
  def add_telemetry
123
123
  sdk_information = 'azure_mgmt_analysis_services'
124
- if defined? Azure::AnalysisServices::Mgmt::V2017_07_14::VERSION
125
- sdk_information = "#{sdk_information}/#{Azure::AnalysisServices::Mgmt::V2017_07_14::VERSION}"
126
- end
124
+ sdk_information = "#{sdk_information}/0.15.1"
127
125
  add_user_agent_information(sdk_information)
128
126
  end
129
127
  end
@@ -46,6 +46,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
46
46
  #
47
47
  def self.mapper()
48
48
  {
49
+ client_side_validation: true,
49
50
  required: false,
50
51
  serialized_name: 'AnalysisServicesServer',
51
52
  type: {
@@ -53,6 +54,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
53
54
  class_name: 'AnalysisServicesServer',
54
55
  model_properties: {
55
56
  id: {
57
+ client_side_validation: true,
56
58
  required: false,
57
59
  read_only: true,
58
60
  serialized_name: 'id',
@@ -61,6 +63,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
61
63
  }
62
64
  },
63
65
  name: {
66
+ client_side_validation: true,
64
67
  required: false,
65
68
  read_only: true,
66
69
  serialized_name: 'name',
@@ -69,6 +72,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
69
72
  }
70
73
  },
71
74
  type: {
75
+ client_side_validation: true,
72
76
  required: false,
73
77
  read_only: true,
74
78
  serialized_name: 'type',
@@ -77,6 +81,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
77
81
  }
78
82
  },
79
83
  location: {
84
+ client_side_validation: true,
80
85
  required: true,
81
86
  serialized_name: 'location',
82
87
  type: {
@@ -84,6 +89,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
84
89
  }
85
90
  },
86
91
  sku: {
92
+ client_side_validation: true,
87
93
  required: true,
88
94
  serialized_name: 'sku',
89
95
  type: {
@@ -92,11 +98,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
92
98
  }
93
99
  },
94
100
  tags: {
101
+ client_side_validation: true,
95
102
  required: false,
96
103
  serialized_name: 'tags',
97
104
  type: {
98
105
  name: 'Dictionary',
99
106
  value: {
107
+ client_side_validation: true,
100
108
  required: false,
101
109
  serialized_name: 'StringElementType',
102
110
  type: {
@@ -106,6 +114,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
106
114
  }
107
115
  },
108
116
  as_administrators: {
117
+ client_side_validation: true,
109
118
  required: false,
110
119
  serialized_name: 'properties.asAdministrators',
111
120
  type: {
@@ -114,6 +123,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
114
123
  }
115
124
  },
116
125
  backup_blob_container_uri: {
126
+ client_side_validation: true,
117
127
  required: false,
118
128
  serialized_name: 'properties.backupBlobContainerUri',
119
129
  type: {
@@ -121,6 +131,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
121
131
  }
122
132
  },
123
133
  gateway_details: {
134
+ client_side_validation: true,
124
135
  required: false,
125
136
  serialized_name: 'properties.gatewayDetails',
126
137
  type: {
@@ -129,6 +140,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
129
140
  }
130
141
  },
131
142
  state: {
143
+ client_side_validation: true,
132
144
  required: false,
133
145
  read_only: true,
134
146
  serialized_name: 'properties.state',
@@ -137,6 +149,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
137
149
  }
138
150
  },
139
151
  provisioning_state: {
152
+ client_side_validation: true,
140
153
  required: false,
141
154
  read_only: true,
142
155
  serialized_name: 'properties.provisioningState',
@@ -145,6 +158,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
145
158
  }
146
159
  },
147
160
  server_full_name: {
161
+ client_side_validation: true,
148
162
  required: false,
149
163
  read_only: true,
150
164
  serialized_name: 'properties.serverFullName',
@@ -36,6 +36,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
36
36
  #
37
37
  def self.mapper()
38
38
  {
39
+ client_side_validation: true,
39
40
  required: false,
40
41
  serialized_name: 'AnalysisServicesServerUpdateParameters',
41
42
  type: {
@@ -43,6 +44,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
43
44
  class_name: 'AnalysisServicesServerUpdateParameters',
44
45
  model_properties: {
45
46
  sku: {
47
+ client_side_validation: true,
46
48
  required: false,
47
49
  serialized_name: 'sku',
48
50
  type: {
@@ -51,11 +53,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
51
53
  }
52
54
  },
53
55
  tags: {
56
+ client_side_validation: true,
54
57
  required: false,
55
58
  serialized_name: 'tags',
56
59
  type: {
57
60
  name: 'Dictionary',
58
61
  value: {
62
+ client_side_validation: true,
59
63
  required: false,
60
64
  serialized_name: 'StringElementType',
61
65
  type: {
@@ -65,6 +69,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
65
69
  }
66
70
  },
67
71
  as_administrators: {
72
+ client_side_validation: true,
68
73
  required: false,
69
74
  serialized_name: 'properties.asAdministrators',
70
75
  type: {
@@ -73,6 +78,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
73
78
  }
74
79
  },
75
80
  backup_blob_container_uri: {
81
+ client_side_validation: true,
76
82
  required: false,
77
83
  serialized_name: 'properties.backupBlobContainerUri',
78
84
  type: {
@@ -80,6 +86,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
80
86
  }
81
87
  },
82
88
  gateway_details: {
89
+ client_side_validation: true,
83
90
  required: false,
84
91
  serialized_name: 'properties.gatewayDetails',
85
92
  type: {
@@ -23,6 +23,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'AnalysisServicesServers',
28
29
  type: {
@@ -30,11 +31,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
30
31
  class_name: 'AnalysisServicesServers',
31
32
  model_properties: {
32
33
  value: {
34
+ client_side_validation: true,
33
35
  required: true,
34
36
  serialized_name: 'value',
35
37
  type: {
36
38
  name: 'Sequence',
37
39
  element: {
40
+ client_side_validation: true,
38
41
  required: false,
39
42
  serialized_name: 'AnalysisServicesServerElementType',
40
43
  type: {
@@ -29,6 +29,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
29
29
  #
30
30
  def self.mapper()
31
31
  {
32
+ client_side_validation: true,
32
33
  required: false,
33
34
  serialized_name: 'GatewayDetails',
34
35
  type: {
@@ -36,6 +37,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
36
37
  class_name: 'GatewayDetails',
37
38
  model_properties: {
38
39
  gateway_resource_id: {
40
+ client_side_validation: true,
39
41
  required: false,
40
42
  serialized_name: 'gatewayResourceId',
41
43
  type: {
@@ -43,6 +45,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
43
45
  }
44
46
  },
45
47
  gateway_object_id: {
48
+ client_side_validation: true,
46
49
  required: false,
47
50
  read_only: true,
48
51
  serialized_name: 'gatewayObjectId',
@@ -51,6 +54,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
51
54
  }
52
55
  },
53
56
  dmts_cluster_uri: {
57
+ client_side_validation: true,
54
58
  required: false,
55
59
  read_only: true,
56
60
  serialized_name: 'dmtsClusterUri',
@@ -25,6 +25,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'GatewayError',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
32
33
  class_name: 'GatewayError',
33
34
  model_properties: {
34
35
  code: {
36
+ client_side_validation: true,
35
37
  required: false,
36
38
  serialized_name: 'code',
37
39
  type: {
@@ -39,6 +41,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
39
41
  }
40
42
  },
41
43
  message: {
44
+ client_side_validation: true,
42
45
  required: false,
43
46
  serialized_name: 'message',
44
47
  type: {
@@ -22,6 +22,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
22
22
  #
23
23
  def self.mapper()
24
24
  {
25
+ client_side_validation: true,
25
26
  required: false,
26
27
  serialized_name: 'GatewayListStatusError',
27
28
  type: {
@@ -29,6 +30,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
29
30
  class_name: 'GatewayListStatusError',
30
31
  model_properties: {
31
32
  error: {
33
+ client_side_validation: true,
32
34
  required: false,
33
35
  serialized_name: 'error',
34
36
  type: {
@@ -23,6 +23,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'GatewayListStatusLive',
28
29
  type: {
@@ -30,6 +31,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
30
31
  class_name: 'GatewayListStatusLive',
31
32
  model_properties: {
32
33
  status: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'status',
35
37
  type: {
@@ -39,6 +39,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
39
39
  #
40
40
  def self.mapper()
41
41
  {
42
+ client_side_validation: true,
42
43
  required: false,
43
44
  serialized_name: 'Resource',
44
45
  type: {
@@ -46,6 +47,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
46
47
  class_name: 'Resource',
47
48
  model_properties: {
48
49
  id: {
50
+ client_side_validation: true,
49
51
  required: false,
50
52
  read_only: true,
51
53
  serialized_name: 'id',
@@ -54,6 +56,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
54
56
  }
55
57
  },
56
58
  name: {
59
+ client_side_validation: true,
57
60
  required: false,
58
61
  read_only: true,
59
62
  serialized_name: 'name',
@@ -62,6 +65,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
62
65
  }
63
66
  },
64
67
  type: {
68
+ client_side_validation: true,
65
69
  required: false,
66
70
  read_only: true,
67
71
  serialized_name: 'type',
@@ -70,6 +74,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
70
74
  }
71
75
  },
72
76
  location: {
77
+ client_side_validation: true,
73
78
  required: true,
74
79
  serialized_name: 'location',
75
80
  type: {
@@ -77,6 +82,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
77
82
  }
78
83
  },
79
84
  sku: {
85
+ client_side_validation: true,
80
86
  required: true,
81
87
  serialized_name: 'sku',
82
88
  type: {
@@ -85,11 +91,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
85
91
  }
86
92
  },
87
93
  tags: {
94
+ client_side_validation: true,
88
95
  required: false,
89
96
  serialized_name: 'tags',
90
97
  type: {
91
98
  name: 'Dictionary',
92
99
  value: {
100
+ client_side_validation: true,
93
101
  required: false,
94
102
  serialized_name: 'StringElementType',
95
103
  type: {
@@ -27,6 +27,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
27
27
  #
28
28
  def self.mapper()
29
29
  {
30
+ client_side_validation: true,
30
31
  required: false,
31
32
  serialized_name: 'ResourceSku',
32
33
  type: {
@@ -34,6 +35,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
34
35
  class_name: 'ResourceSku',
35
36
  model_properties: {
36
37
  name: {
38
+ client_side_validation: true,
37
39
  required: true,
38
40
  serialized_name: 'name',
39
41
  type: {
@@ -41,6 +43,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
41
43
  }
42
44
  },
43
45
  tier: {
46
+ client_side_validation: true,
44
47
  required: false,
45
48
  serialized_name: 'tier',
46
49
  type: {
@@ -22,6 +22,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
22
22
  #
23
23
  def self.mapper()
24
24
  {
25
+ client_side_validation: true,
25
26
  required: false,
26
27
  serialized_name: 'ServerAdministrators',
27
28
  type: {
@@ -29,11 +30,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
29
30
  class_name: 'ServerAdministrators',
30
31
  model_properties: {
31
32
  members: {
33
+ client_side_validation: true,
32
34
  required: false,
33
35
  serialized_name: 'members',
34
36
  type: {
35
37
  name: 'Sequence',
36
38
  element: {
39
+ client_side_validation: true,
37
40
  required: false,
38
41
  serialized_name: 'StringElementType',
39
42
  type: {
@@ -22,6 +22,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
22
22
  #
23
23
  def self.mapper()
24
24
  {
25
+ client_side_validation: true,
25
26
  required: false,
26
27
  serialized_name: 'SkuDetailsForExistingResource',
27
28
  type: {
@@ -29,6 +30,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
29
30
  class_name: 'SkuDetailsForExistingResource',
30
31
  model_properties: {
31
32
  sku: {
33
+ client_side_validation: true,
32
34
  required: false,
33
35
  serialized_name: 'sku',
34
36
  type: {
@@ -23,6 +23,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'SkuEnumerationForExistingResourceResult',
28
29
  type: {
@@ -30,11 +31,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
30
31
  class_name: 'SkuEnumerationForExistingResourceResult',
31
32
  model_properties: {
32
33
  value: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'value',
35
37
  type: {
36
38
  name: 'Sequence',
37
39
  element: {
40
+ client_side_validation: true,
38
41
  required: false,
39
42
  serialized_name: 'SkuDetailsForExistingResourceElementType',
40
43
  type: {
@@ -23,6 +23,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'SkuEnumerationForNewResourceResult',
28
29
  type: {
@@ -30,11 +31,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
30
31
  class_name: 'SkuEnumerationForNewResourceResult',
31
32
  model_properties: {
32
33
  value: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'value',
35
37
  type: {
36
38
  name: 'Sequence',
37
39
  element: {
40
+ client_side_validation: true,
38
41
  required: false,
39
42
  serialized_name: 'ResourceSkuElementType',
40
43
  type: {
@@ -73,7 +73,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
73
73
  #
74
74
  def get_details_async(resource_group_name, server_name, custom_headers = nil)
75
75
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
76
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
77
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
78
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
76
79
  fail ArgumentError, 'server_name is nil' if server_name.nil?
80
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
81
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
82
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
77
83
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
78
84
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
85
 
@@ -404,6 +410,9 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
404
410
  #
405
411
  def list_by_resource_group_async(resource_group_name, custom_headers = nil)
406
412
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
413
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
414
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
415
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
407
416
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
408
417
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
409
418
 
@@ -669,7 +678,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
669
678
  #
670
679
  def list_skus_for_existing_async(resource_group_name, server_name, custom_headers = nil)
671
680
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
681
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
682
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
683
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
672
684
  fail ArgumentError, 'server_name is nil' if server_name.nil?
685
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
686
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
687
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
673
688
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
674
689
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
675
690
 
@@ -769,7 +784,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
769
784
  #
770
785
  def list_gateway_status_async(resource_group_name, server_name, custom_headers = nil)
771
786
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
787
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
788
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
789
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
772
790
  fail ArgumentError, 'server_name is nil' if server_name.nil?
791
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
792
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
793
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
773
794
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
774
795
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
775
796
 
@@ -868,7 +889,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
868
889
  #
869
890
  def dissociate_gateway_async(resource_group_name, server_name, custom_headers = nil)
870
891
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
892
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
893
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
894
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
871
895
  fail ArgumentError, 'server_name is nil' if server_name.nil?
896
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
897
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
898
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
872
899
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
873
900
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
874
901
 
@@ -967,7 +994,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
967
994
  #
968
995
  def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers = nil)
969
996
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
997
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
998
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
999
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
970
1000
  fail ArgumentError, 'server_name is nil' if server_name.nil?
1001
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
1002
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
1003
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
971
1004
  fail ArgumentError, 'server_parameters is nil' if server_parameters.nil?
972
1005
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
973
1006
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1086,7 +1119,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
1086
1119
  #
1087
1120
  def begin_delete_async(resource_group_name, server_name, custom_headers = nil)
1088
1121
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1122
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1123
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1124
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1089
1125
  fail ArgumentError, 'server_name is nil' if server_name.nil?
1126
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
1127
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
1128
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
1090
1129
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1091
1130
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1092
1131
 
@@ -1182,7 +1221,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
1182
1221
  #
1183
1222
  def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
1184
1223
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1224
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1225
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1226
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1185
1227
  fail ArgumentError, 'server_name is nil' if server_name.nil?
1228
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
1229
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
1230
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
1186
1231
  fail ArgumentError, 'server_update_parameters is nil' if server_update_parameters.nil?
1187
1232
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1188
1233
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1301,7 +1346,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
1301
1346
  #
1302
1347
  def begin_suspend_async(resource_group_name, server_name, custom_headers = nil)
1303
1348
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1349
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1350
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1351
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1304
1352
  fail ArgumentError, 'server_name is nil' if server_name.nil?
1353
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
1354
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
1355
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
1305
1356
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1306
1357
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1307
1358
 
@@ -1390,7 +1441,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14
1390
1441
  #
1391
1442
  def begin_resume_async(resource_group_name, server_name, custom_headers = nil)
1392
1443
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1444
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1445
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1446
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1393
1447
  fail ArgumentError, 'server_name is nil' if server_name.nil?
1448
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63
1449
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3
1450
+ fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil?
1394
1451
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1395
1452
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1396
1453