azure_mgmt_service_bus 0.10.0 → 0.11.0

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_service_bus.rb +35 -20
  3. data/lib/generated/azure_mgmt_service_bus/models/{resource_list_keys.rb → access_keys.rb} +11 -5
  4. data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +1 -1
  5. data/lib/generated/azure_mgmt_service_bus/models/action.rb +69 -0
  6. data/lib/generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb +53 -0
  7. data/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb +48 -0
  8. data/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +72 -0
  9. data/lib/generated/azure_mgmt_service_bus/models/correlation_filter.rb +127 -0
  10. data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +5 -5
  11. data/lib/generated/azure_mgmt_service_bus/models/error_response.rb +56 -0
  12. data/lib/generated/azure_mgmt_service_bus/models/filter_type.rb +16 -0
  13. data/lib/generated/azure_mgmt_service_bus/models/{policykey.rb → key_type.rb} +3 -3
  14. data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +9 -8
  15. data/lib/generated/azure_mgmt_service_bus/models/operation.rb +57 -0
  16. data/lib/generated/azure_mgmt_service_bus/models/operation_display.rb +69 -0
  17. data/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb +99 -0
  18. data/lib/generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb +59 -0
  19. data/lib/generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb +86 -0
  20. data/lib/generated/azure_mgmt_service_bus/models/rule.rb +107 -0
  21. data/lib/generated/azure_mgmt_service_bus/models/rule_list_result.rb +95 -0
  22. data/lib/generated/azure_mgmt_service_bus/models/{shared_access_authorization_rule_resource.rb → sbauthorization_rule.rb} +7 -27
  23. data/lib/generated/azure_mgmt_service_bus/models/{shared_access_authorization_rule_list_result.rb → sbauthorization_rule_list_result.rb} +12 -13
  24. data/lib/generated/azure_mgmt_service_bus/models/{namespace_resource.rb → sbnamespace.rb} +19 -7
  25. data/lib/generated/azure_mgmt_service_bus/models/{namespace_list_result.rb → sbnamespace_list_result.rb} +11 -11
  26. data/lib/generated/azure_mgmt_service_bus/models/{namespace_create_or_update_parameters.rb → sbnamespace_update_parameters.rb} +50 -20
  27. data/lib/generated/azure_mgmt_service_bus/models/{queue_create_or_update_parameters.rb → sbqueue.rb} +119 -133
  28. data/lib/generated/azure_mgmt_service_bus/models/{queue_list_result.rb → sbqueue_list_result.rb} +11 -10
  29. data/lib/generated/azure_mgmt_service_bus/models/{sku.rb → sbsku.rb} +14 -10
  30. data/lib/generated/azure_mgmt_service_bus/models/{subscription_resource.rb → sbsubscription.rb} +74 -92
  31. data/lib/generated/azure_mgmt_service_bus/models/{subscription_list_result.rb → sbsubscription_list_result.rb} +11 -10
  32. data/lib/generated/azure_mgmt_service_bus/models/{topic_create_or_update_parameters.rb → sbtopic.rb} +102 -97
  33. data/lib/generated/azure_mgmt_service_bus/models/{topic_list_result.rb → sbtopic_list_result.rb} +11 -10
  34. data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +1 -1
  35. data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +1 -1
  36. data/lib/generated/azure_mgmt_service_bus/models/sql_filter.rb +72 -0
  37. data/lib/generated/azure_mgmt_service_bus/models/sql_rule_action.rb +58 -0
  38. data/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb +86 -0
  39. data/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb +20 -0
  40. data/lib/generated/azure_mgmt_service_bus/module_definition.rb +1 -1
  41. data/lib/generated/azure_mgmt_service_bus/namespaces.rb +442 -188
  42. data/lib/generated/azure_mgmt_service_bus/operations.rb +213 -0
  43. data/lib/generated/azure_mgmt_service_bus/queues.rb +198 -169
  44. data/lib/generated/azure_mgmt_service_bus/rules.rb +558 -0
  45. data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +10 -2
  46. data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +90 -78
  47. data/lib/generated/azure_mgmt_service_bus/topics.rb +199 -173
  48. data/lib/generated/azure_mgmt_service_bus/version.rb +2 -2
  49. metadata +38 -23
  50. data/lib/generated/azure_mgmt_service_bus/models/queue_resource.rb +0 -308
  51. data/lib/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +0 -46
  52. data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +0 -74
  53. data/lib/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +0 -213
  54. data/lib/generated/azure_mgmt_service_bus/models/topic_resource.rb +0 -263
@@ -0,0 +1,213 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::ServiceBus
7
+ #
8
+ # Azure Service Bus client
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ServiceBusManagementClient] reference to the ServiceBusManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the available ServiceBus REST API operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers = nil)
33
+ first_page = list_as_lazy(custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists all of the available ServiceBus REST API operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers = nil)
46
+ list_async(custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists all of the available ServiceBus REST API operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers = nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+
63
+ # Set Headers
64
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
65
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
66
+ path_template = 'providers/Microsoft.ServiceBus/operations'
67
+
68
+ request_url = @base_url || @client.base_url
69
+
70
+ options = {
71
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
72
+ query_params: {'api-version' => @client.api_version},
73
+ headers: request_headers.merge(custom_headers || {}),
74
+ base_url: request_url
75
+ }
76
+ promise = @client.make_request_async(:get, path_template, options)
77
+
78
+ promise = promise.then do |result|
79
+ http_response = result.response
80
+ status_code = http_response.status
81
+ response_content = http_response.body
82
+ unless status_code == 200
83
+ error_model = JSON.load(response_content)
84
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
85
+ end
86
+
87
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
88
+ # Deserialize Response
89
+ if status_code == 200
90
+ begin
91
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
92
+ result_mapper = Azure::ARM::ServiceBus::Models::OperationListResult.mapper()
93
+ result.body = @client.deserialize(result_mapper, parsed_response)
94
+ rescue Exception => e
95
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
96
+ end
97
+ end
98
+
99
+ result
100
+ end
101
+
102
+ promise.execute
103
+ end
104
+
105
+ #
106
+ # Lists all of the available ServiceBus REST API operations.
107
+ #
108
+ # @param next_page_link [String] The NextLink from the previous successful call
109
+ # to List operation.
110
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
111
+ # will be added to the HTTP request.
112
+ #
113
+ # @return [OperationListResult] operation results.
114
+ #
115
+ def list_next(next_page_link, custom_headers = nil)
116
+ response = list_next_async(next_page_link, custom_headers).value!
117
+ response.body unless response.nil?
118
+ end
119
+
120
+ #
121
+ # Lists all of the available ServiceBus REST API operations.
122
+ #
123
+ # @param next_page_link [String] The NextLink from the previous successful call
124
+ # to List operation.
125
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
+ # will be added to the HTTP request.
127
+ #
128
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
+ #
130
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
131
+ list_next_async(next_page_link, custom_headers).value!
132
+ end
133
+
134
+ #
135
+ # Lists all of the available ServiceBus REST API operations.
136
+ #
137
+ # @param next_page_link [String] The NextLink from the previous successful call
138
+ # to List operation.
139
+ # @param [Hash{String => String}] A hash of custom headers that will be added
140
+ # to the HTTP request.
141
+ #
142
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
+ #
144
+ def list_next_async(next_page_link, custom_headers = nil)
145
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
146
+
147
+
148
+ request_headers = {}
149
+
150
+ # Set Headers
151
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
152
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
153
+ path_template = '{nextLink}'
154
+
155
+ request_url = @base_url || @client.base_url
156
+
157
+ options = {
158
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
159
+ skip_encoding_path_params: {'nextLink' => next_page_link},
160
+ headers: request_headers.merge(custom_headers || {}),
161
+ base_url: request_url
162
+ }
163
+ promise = @client.make_request_async(:get, path_template, options)
164
+
165
+ promise = promise.then do |result|
166
+ http_response = result.response
167
+ status_code = http_response.status
168
+ response_content = http_response.body
169
+ unless status_code == 200
170
+ error_model = JSON.load(response_content)
171
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
172
+ end
173
+
174
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
175
+ # Deserialize Response
176
+ if status_code == 200
177
+ begin
178
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
179
+ result_mapper = Azure::ARM::ServiceBus::Models::OperationListResult.mapper()
180
+ result.body = @client.deserialize(result_mapper, parsed_response)
181
+ rescue Exception => e
182
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
183
+ end
184
+ end
185
+
186
+ result
187
+ end
188
+
189
+ promise.execute
190
+ end
191
+
192
+ #
193
+ # Lists all of the available ServiceBus REST API operations.
194
+ #
195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
+ # will be added to the HTTP request.
197
+ #
198
+ # @return [OperationListResult] which provide lazy access to pages of the
199
+ # response.
200
+ #
201
+ def list_as_lazy(custom_headers = nil)
202
+ response = list_async(custom_headers).value!
203
+ unless response.nil?
204
+ page = response.body
205
+ page.next_method = Proc.new do |next_page_link|
206
+ list_next_async(next_page_link, custom_headers)
207
+ end
208
+ page
209
+ end
210
+ end
211
+
212
+ end
213
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,7 +8,6 @@ module Azure::ARM::ServiceBus
8
8
  # Azure Service Bus client
9
9
  #
10
10
  class Queues
11
- include Azure::ARM::ServiceBus::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -25,43 +24,46 @@ module Azure::ARM::ServiceBus
25
24
  #
26
25
  # Gets the queues within a namespace.
27
26
  #
28
- # @param resource_group_name [String] The name of the resource group.
29
- # @param namespace_name [String] The namespace name.
27
+ # @param resource_group_name [String] Name of the Resource group within the
28
+ # Azure subscription.
29
+ # @param namespace_name [String] The namespace name
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
33
- # @return [Array<QueueResource>] operation results.
33
+ # @return [Array<SBQueue>] operation results.
34
34
  #
35
- def list_all(resource_group_name, namespace_name, custom_headers = nil)
36
- first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers)
35
+ def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil)
36
+ first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers)
37
37
  first_page.get_all_items
38
38
  end
39
39
 
40
40
  #
41
41
  # Gets the queues within a namespace.
42
42
  #
43
- # @param resource_group_name [String] The name of the resource group.
44
- # @param namespace_name [String] The namespace name.
43
+ # @param resource_group_name [String] Name of the Resource group within the
44
+ # Azure subscription.
45
+ # @param namespace_name [String] The namespace name
45
46
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
47
  # will be added to the HTTP request.
47
48
  #
48
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
50
  #
50
- def list_all_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
51
- list_all_async(resource_group_name, namespace_name, custom_headers).value!
51
+ def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
52
+ list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
52
53
  end
53
54
 
54
55
  #
55
56
  # Gets the queues within a namespace.
56
57
  #
57
- # @param resource_group_name [String] The name of the resource group.
58
- # @param namespace_name [String] The namespace name.
58
+ # @param resource_group_name [String] Name of the Resource group within the
59
+ # Azure subscription.
60
+ # @param namespace_name [String] The namespace name
59
61
  # @param [Hash{String => String}] A hash of custom headers that will be added
60
62
  # to the HTTP request.
61
63
  #
62
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
63
65
  #
64
- def list_all_async(resource_group_name, namespace_name, custom_headers = nil)
66
+ def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
65
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
66
68
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
67
69
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -73,7 +75,7 @@ module Azure::ARM::ServiceBus
73
75
  # Set Headers
74
76
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
75
77
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
76
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues'
78
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues'
77
79
 
78
80
  request_url = @base_url || @client.base_url
79
81
 
@@ -92,7 +94,7 @@ module Azure::ARM::ServiceBus
92
94
  response_content = http_response.body
93
95
  unless status_code == 200
94
96
  error_model = JSON.load(response_content)
95
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
97
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
96
98
  end
97
99
 
98
100
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -100,8 +102,8 @@ module Azure::ARM::ServiceBus
100
102
  if status_code == 200
101
103
  begin
102
104
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
103
- result_mapper = QueueListResult.mapper()
104
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
105
+ result_mapper = Azure::ARM::ServiceBus::Models::SBQueueListResult.mapper()
106
+ result.body = @client.deserialize(result_mapper, parsed_response)
105
107
  rescue Exception => e
106
108
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
107
109
  end
@@ -116,15 +118,16 @@ module Azure::ARM::ServiceBus
116
118
  #
117
119
  # Creates or updates a Service Bus queue. This operation is idempotent.
118
120
  #
119
- # @param resource_group_name [String] The name of the resource group.
120
- # @param namespace_name [String] The namespace name.
121
+ # @param resource_group_name [String] Name of the Resource group within the
122
+ # Azure subscription.
123
+ # @param namespace_name [String] The namespace name
121
124
  # @param queue_name [String] The queue name.
122
- # @param parameters [QueueCreateOrUpdateParameters] Parameters supplied to
123
- # create or update a queue resource.
125
+ # @param parameters [SBQueue] Parameters supplied to create or update a queue
126
+ # resource.
124
127
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
128
  # will be added to the HTTP request.
126
129
  #
127
- # @return [QueueResource] operation results.
130
+ # @return [SBQueue] operation results.
128
131
  #
129
132
  def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil)
130
133
  response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value!
@@ -134,11 +137,12 @@ module Azure::ARM::ServiceBus
134
137
  #
135
138
  # Creates or updates a Service Bus queue. This operation is idempotent.
136
139
  #
137
- # @param resource_group_name [String] The name of the resource group.
138
- # @param namespace_name [String] The namespace name.
140
+ # @param resource_group_name [String] Name of the Resource group within the
141
+ # Azure subscription.
142
+ # @param namespace_name [String] The namespace name
139
143
  # @param queue_name [String] The queue name.
140
- # @param parameters [QueueCreateOrUpdateParameters] Parameters supplied to
141
- # create or update a queue resource.
144
+ # @param parameters [SBQueue] Parameters supplied to create or update a queue
145
+ # resource.
142
146
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
143
147
  # will be added to the HTTP request.
144
148
  #
@@ -151,11 +155,12 @@ module Azure::ARM::ServiceBus
151
155
  #
152
156
  # Creates or updates a Service Bus queue. This operation is idempotent.
153
157
  #
154
- # @param resource_group_name [String] The name of the resource group.
155
- # @param namespace_name [String] The namespace name.
158
+ # @param resource_group_name [String] Name of the Resource group within the
159
+ # Azure subscription.
160
+ # @param namespace_name [String] The namespace name
156
161
  # @param queue_name [String] The queue name.
157
- # @param parameters [QueueCreateOrUpdateParameters] Parameters supplied to
158
- # create or update a queue resource.
162
+ # @param parameters [SBQueue] Parameters supplied to create or update a queue
163
+ # resource.
159
164
  # @param [Hash{String => String}] A hash of custom headers that will be added
160
165
  # to the HTTP request.
161
166
  #
@@ -179,11 +184,11 @@ module Azure::ARM::ServiceBus
179
184
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
180
185
 
181
186
  # Serialize Request
182
- request_mapper = QueueCreateOrUpdateParameters.mapper()
183
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
187
+ request_mapper = Azure::ARM::ServiceBus::Models::SBQueue.mapper()
188
+ request_content = @client.serialize(request_mapper, parameters)
184
189
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
185
190
 
186
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}'
191
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}'
187
192
 
188
193
  request_url = @base_url || @client.base_url
189
194
 
@@ -203,7 +208,7 @@ module Azure::ARM::ServiceBus
203
208
  response_content = http_response.body
204
209
  unless status_code == 200
205
210
  error_model = JSON.load(response_content)
206
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
211
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
207
212
  end
208
213
 
209
214
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -211,8 +216,8 @@ module Azure::ARM::ServiceBus
211
216
  if status_code == 200
212
217
  begin
213
218
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
214
- result_mapper = QueueResource.mapper()
215
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
219
+ result_mapper = Azure::ARM::ServiceBus::Models::SBQueue.mapper()
220
+ result.body = @client.deserialize(result_mapper, parsed_response)
216
221
  rescue Exception => e
217
222
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
218
223
  end
@@ -227,9 +232,10 @@ module Azure::ARM::ServiceBus
227
232
  #
228
233
  # Deletes a queue from the specified namespace in a resource group.
229
234
  #
230
- # @param resource_group_name [String] The name of the resource group.
231
- # @param namespace_name [String] The namespace name.
232
- # @param queue_name [String] The name of the queue to be deleted.
235
+ # @param resource_group_name [String] Name of the Resource group within the
236
+ # Azure subscription.
237
+ # @param namespace_name [String] The namespace name
238
+ # @param queue_name [String] The queue name.
233
239
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
234
240
  # will be added to the HTTP request.
235
241
  #
@@ -242,9 +248,10 @@ module Azure::ARM::ServiceBus
242
248
  #
243
249
  # Deletes a queue from the specified namespace in a resource group.
244
250
  #
245
- # @param resource_group_name [String] The name of the resource group.
246
- # @param namespace_name [String] The namespace name.
247
- # @param queue_name [String] The name of the queue to be deleted.
251
+ # @param resource_group_name [String] Name of the Resource group within the
252
+ # Azure subscription.
253
+ # @param namespace_name [String] The namespace name
254
+ # @param queue_name [String] The queue name.
248
255
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
249
256
  # will be added to the HTTP request.
250
257
  #
@@ -257,9 +264,10 @@ module Azure::ARM::ServiceBus
257
264
  #
258
265
  # Deletes a queue from the specified namespace in a resource group.
259
266
  #
260
- # @param resource_group_name [String] The name of the resource group.
261
- # @param namespace_name [String] The namespace name.
262
- # @param queue_name [String] The name of the queue to be deleted.
267
+ # @param resource_group_name [String] Name of the Resource group within the
268
+ # Azure subscription.
269
+ # @param namespace_name [String] The namespace name
270
+ # @param queue_name [String] The queue name.
263
271
  # @param [Hash{String => String}] A hash of custom headers that will be added
264
272
  # to the HTTP request.
265
273
  #
@@ -278,7 +286,7 @@ module Azure::ARM::ServiceBus
278
286
  # Set Headers
279
287
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
280
288
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
281
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}'
289
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}'
282
290
 
283
291
  request_url = @base_url || @client.base_url
284
292
 
@@ -297,7 +305,7 @@ module Azure::ARM::ServiceBus
297
305
  response_content = http_response.body
298
306
  unless status_code == 204 || status_code == 200
299
307
  error_model = JSON.load(response_content)
300
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
308
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
301
309
  end
302
310
 
303
311
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -311,13 +319,14 @@ module Azure::ARM::ServiceBus
311
319
  #
312
320
  # Returns a description for the specified queue.
313
321
  #
314
- # @param resource_group_name [String] The name of the resource group.
315
- # @param namespace_name [String] The namespace name.
322
+ # @param resource_group_name [String] Name of the Resource group within the
323
+ # Azure subscription.
324
+ # @param namespace_name [String] The namespace name
316
325
  # @param queue_name [String] The queue name.
317
326
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
318
327
  # will be added to the HTTP request.
319
328
  #
320
- # @return [QueueResource] operation results.
329
+ # @return [SBQueue] operation results.
321
330
  #
322
331
  def get(resource_group_name, namespace_name, queue_name, custom_headers = nil)
323
332
  response = get_async(resource_group_name, namespace_name, queue_name, custom_headers).value!
@@ -327,8 +336,9 @@ module Azure::ARM::ServiceBus
327
336
  #
328
337
  # Returns a description for the specified queue.
329
338
  #
330
- # @param resource_group_name [String] The name of the resource group.
331
- # @param namespace_name [String] The namespace name.
339
+ # @param resource_group_name [String] Name of the Resource group within the
340
+ # Azure subscription.
341
+ # @param namespace_name [String] The namespace name
332
342
  # @param queue_name [String] The queue name.
333
343
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
334
344
  # will be added to the HTTP request.
@@ -342,8 +352,9 @@ module Azure::ARM::ServiceBus
342
352
  #
343
353
  # Returns a description for the specified queue.
344
354
  #
345
- # @param resource_group_name [String] The name of the resource group.
346
- # @param namespace_name [String] The namespace name.
355
+ # @param resource_group_name [String] Name of the Resource group within the
356
+ # Azure subscription.
357
+ # @param namespace_name [String] The namespace name
347
358
  # @param queue_name [String] The queue name.
348
359
  # @param [Hash{String => String}] A hash of custom headers that will be added
349
360
  # to the HTTP request.
@@ -363,7 +374,7 @@ module Azure::ARM::ServiceBus
363
374
  # Set Headers
364
375
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
365
376
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
366
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}'
377
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}'
367
378
 
368
379
  request_url = @base_url || @client.base_url
369
380
 
@@ -382,7 +393,7 @@ module Azure::ARM::ServiceBus
382
393
  response_content = http_response.body
383
394
  unless status_code == 200
384
395
  error_model = JSON.load(response_content)
385
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
396
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
386
397
  end
387
398
 
388
399
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -390,8 +401,8 @@ module Azure::ARM::ServiceBus
390
401
  if status_code == 200
391
402
  begin
392
403
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
393
- result_mapper = QueueResource.mapper()
394
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
404
+ result_mapper = Azure::ARM::ServiceBus::Models::SBQueue.mapper()
405
+ result.body = @client.deserialize(result_mapper, parsed_response)
395
406
  rescue Exception => e
396
407
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
397
408
  end
@@ -406,13 +417,14 @@ module Azure::ARM::ServiceBus
406
417
  #
407
418
  # Gets all authorization rules for a queue.
408
419
  #
409
- # @param resource_group_name [String] The name of the resource group.
420
+ # @param resource_group_name [String] Name of the Resource group within the
421
+ # Azure subscription.
410
422
  # @param namespace_name [String] The namespace name
411
423
  # @param queue_name [String] The queue name.
412
424
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
413
425
  # will be added to the HTTP request.
414
426
  #
415
- # @return [Array<SharedAccessAuthorizationRuleResource>] operation results.
427
+ # @return [Array<SBAuthorizationRule>] operation results.
416
428
  #
417
429
  def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers = nil)
418
430
  first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers)
@@ -422,7 +434,8 @@ module Azure::ARM::ServiceBus
422
434
  #
423
435
  # Gets all authorization rules for a queue.
424
436
  #
425
- # @param resource_group_name [String] The name of the resource group.
437
+ # @param resource_group_name [String] Name of the Resource group within the
438
+ # Azure subscription.
426
439
  # @param namespace_name [String] The namespace name
427
440
  # @param queue_name [String] The queue name.
428
441
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -437,7 +450,8 @@ module Azure::ARM::ServiceBus
437
450
  #
438
451
  # Gets all authorization rules for a queue.
439
452
  #
440
- # @param resource_group_name [String] The name of the resource group.
453
+ # @param resource_group_name [String] Name of the Resource group within the
454
+ # Azure subscription.
441
455
  # @param namespace_name [String] The namespace name
442
456
  # @param queue_name [String] The queue name.
443
457
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -458,7 +472,7 @@ module Azure::ARM::ServiceBus
458
472
  # Set Headers
459
473
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
460
474
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
461
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules'
475
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules'
462
476
 
463
477
  request_url = @base_url || @client.base_url
464
478
 
@@ -477,7 +491,7 @@ module Azure::ARM::ServiceBus
477
491
  response_content = http_response.body
478
492
  unless status_code == 200
479
493
  error_model = JSON.load(response_content)
480
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
494
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
481
495
  end
482
496
 
483
497
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -485,8 +499,8 @@ module Azure::ARM::ServiceBus
485
499
  if status_code == 200
486
500
  begin
487
501
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
488
- result_mapper = SharedAccessAuthorizationRuleListResult.mapper()
489
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
502
+ result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRuleListResult.mapper()
503
+ result.body = @client.deserialize(result_mapper, parsed_response)
490
504
  rescue Exception => e
491
505
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
492
506
  end
@@ -501,16 +515,16 @@ module Azure::ARM::ServiceBus
501
515
  #
502
516
  # Creates an authorization rule for a queue.
503
517
  #
504
- # @param resource_group_name [String] The name of the resource group.
505
- # @param namespace_name [String] The namespace name.
518
+ # @param resource_group_name [String] Name of the Resource group within the
519
+ # Azure subscription.
520
+ # @param namespace_name [String] The namespace name
506
521
  # @param queue_name [String] The queue name.
507
- # @param authorization_rule_name [String] Authorization rule name.
508
- # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
509
- # shared access authorization rule.
522
+ # @param authorization_rule_name [String] The authorizationrule name.
523
+ # @param parameters [SBAuthorizationRule] The shared access authorization rule.
510
524
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
525
  # will be added to the HTTP request.
512
526
  #
513
- # @return [SharedAccessAuthorizationRuleResource] operation results.
527
+ # @return [SBAuthorizationRule] operation results.
514
528
  #
515
529
  def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
516
530
  response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
@@ -520,12 +534,12 @@ module Azure::ARM::ServiceBus
520
534
  #
521
535
  # Creates an authorization rule for a queue.
522
536
  #
523
- # @param resource_group_name [String] The name of the resource group.
524
- # @param namespace_name [String] The namespace name.
537
+ # @param resource_group_name [String] Name of the Resource group within the
538
+ # Azure subscription.
539
+ # @param namespace_name [String] The namespace name
525
540
  # @param queue_name [String] The queue name.
526
- # @param authorization_rule_name [String] Authorization rule name.
527
- # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
528
- # shared access authorization rule.
541
+ # @param authorization_rule_name [String] The authorizationrule name.
542
+ # @param parameters [SBAuthorizationRule] The shared access authorization rule.
529
543
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
544
  # will be added to the HTTP request.
531
545
  #
@@ -538,12 +552,12 @@ module Azure::ARM::ServiceBus
538
552
  #
539
553
  # Creates an authorization rule for a queue.
540
554
  #
541
- # @param resource_group_name [String] The name of the resource group.
542
- # @param namespace_name [String] The namespace name.
555
+ # @param resource_group_name [String] Name of the Resource group within the
556
+ # Azure subscription.
557
+ # @param namespace_name [String] The namespace name
543
558
  # @param queue_name [String] The queue name.
544
- # @param authorization_rule_name [String] Authorization rule name.
545
- # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
546
- # shared access authorization rule.
559
+ # @param authorization_rule_name [String] The authorizationrule name.
560
+ # @param parameters [SBAuthorizationRule] The shared access authorization rule.
547
561
  # @param [Hash{String => String}] A hash of custom headers that will be added
548
562
  # to the HTTP request.
549
563
  #
@@ -568,11 +582,11 @@ module Azure::ARM::ServiceBus
568
582
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
569
583
 
570
584
  # Serialize Request
571
- request_mapper = SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
572
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
585
+ request_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRule.mapper()
586
+ request_content = @client.serialize(request_mapper, parameters)
573
587
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
574
588
 
575
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
589
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
576
590
 
577
591
  request_url = @base_url || @client.base_url
578
592
 
@@ -592,7 +606,7 @@ module Azure::ARM::ServiceBus
592
606
  response_content = http_response.body
593
607
  unless status_code == 200
594
608
  error_model = JSON.load(response_content)
595
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
609
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
596
610
  end
597
611
 
598
612
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -600,8 +614,8 @@ module Azure::ARM::ServiceBus
600
614
  if status_code == 200
601
615
  begin
602
616
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
603
- result_mapper = SharedAccessAuthorizationRuleResource.mapper()
604
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
617
+ result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRule.mapper()
618
+ result.body = @client.deserialize(result_mapper, parsed_response)
605
619
  rescue Exception => e
606
620
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
607
621
  end
@@ -616,10 +630,11 @@ module Azure::ARM::ServiceBus
616
630
  #
617
631
  # Deletes a queue authorization rule.
618
632
  #
619
- # @param resource_group_name [String] The name of the resource group.
620
- # @param namespace_name [String] The namespace name.
633
+ # @param resource_group_name [String] Name of the Resource group within the
634
+ # Azure subscription.
635
+ # @param namespace_name [String] The namespace name
621
636
  # @param queue_name [String] The queue name.
622
- # @param authorization_rule_name [String] Authorization rule name.
637
+ # @param authorization_rule_name [String] The authorizationrule name.
623
638
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
624
639
  # will be added to the HTTP request.
625
640
  #
@@ -632,10 +647,11 @@ module Azure::ARM::ServiceBus
632
647
  #
633
648
  # Deletes a queue authorization rule.
634
649
  #
635
- # @param resource_group_name [String] The name of the resource group.
636
- # @param namespace_name [String] The namespace name.
650
+ # @param resource_group_name [String] Name of the Resource group within the
651
+ # Azure subscription.
652
+ # @param namespace_name [String] The namespace name
637
653
  # @param queue_name [String] The queue name.
638
- # @param authorization_rule_name [String] Authorization rule name.
654
+ # @param authorization_rule_name [String] The authorizationrule name.
639
655
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
640
656
  # will be added to the HTTP request.
641
657
  #
@@ -648,10 +664,11 @@ module Azure::ARM::ServiceBus
648
664
  #
649
665
  # Deletes a queue authorization rule.
650
666
  #
651
- # @param resource_group_name [String] The name of the resource group.
652
- # @param namespace_name [String] The namespace name.
667
+ # @param resource_group_name [String] Name of the Resource group within the
668
+ # Azure subscription.
669
+ # @param namespace_name [String] The namespace name
653
670
  # @param queue_name [String] The queue name.
654
- # @param authorization_rule_name [String] Authorization rule name.
671
+ # @param authorization_rule_name [String] The authorizationrule name.
655
672
  # @param [Hash{String => String}] A hash of custom headers that will be added
656
673
  # to the HTTP request.
657
674
  #
@@ -671,7 +688,7 @@ module Azure::ARM::ServiceBus
671
688
  # Set Headers
672
689
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
673
690
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
674
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
691
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
675
692
 
676
693
  request_url = @base_url || @client.base_url
677
694
 
@@ -690,7 +707,7 @@ module Azure::ARM::ServiceBus
690
707
  response_content = http_response.body
691
708
  unless status_code == 204 || status_code == 200
692
709
  error_model = JSON.load(response_content)
693
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
710
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
694
711
  end
695
712
 
696
713
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -704,14 +721,15 @@ module Azure::ARM::ServiceBus
704
721
  #
705
722
  # Gets an authorization rule for a queue by rule name.
706
723
  #
707
- # @param resource_group_name [String] The name of the resource group.
708
- # @param namespace_name [String] The namespace name.
724
+ # @param resource_group_name [String] Name of the Resource group within the
725
+ # Azure subscription.
726
+ # @param namespace_name [String] The namespace name
709
727
  # @param queue_name [String] The queue name.
710
- # @param authorization_rule_name [String] Authorization rule name.
728
+ # @param authorization_rule_name [String] The authorizationrule name.
711
729
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
712
730
  # will be added to the HTTP request.
713
731
  #
714
- # @return [SharedAccessAuthorizationRuleResource] operation results.
732
+ # @return [SBAuthorizationRule] operation results.
715
733
  #
716
734
  def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
717
735
  response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
@@ -721,10 +739,11 @@ module Azure::ARM::ServiceBus
721
739
  #
722
740
  # Gets an authorization rule for a queue by rule name.
723
741
  #
724
- # @param resource_group_name [String] The name of the resource group.
725
- # @param namespace_name [String] The namespace name.
742
+ # @param resource_group_name [String] Name of the Resource group within the
743
+ # Azure subscription.
744
+ # @param namespace_name [String] The namespace name
726
745
  # @param queue_name [String] The queue name.
727
- # @param authorization_rule_name [String] Authorization rule name.
746
+ # @param authorization_rule_name [String] The authorizationrule name.
728
747
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
729
748
  # will be added to the HTTP request.
730
749
  #
@@ -737,10 +756,11 @@ module Azure::ARM::ServiceBus
737
756
  #
738
757
  # Gets an authorization rule for a queue by rule name.
739
758
  #
740
- # @param resource_group_name [String] The name of the resource group.
741
- # @param namespace_name [String] The namespace name.
759
+ # @param resource_group_name [String] Name of the Resource group within the
760
+ # Azure subscription.
761
+ # @param namespace_name [String] The namespace name
742
762
  # @param queue_name [String] The queue name.
743
- # @param authorization_rule_name [String] Authorization rule name.
763
+ # @param authorization_rule_name [String] The authorizationrule name.
744
764
  # @param [Hash{String => String}] A hash of custom headers that will be added
745
765
  # to the HTTP request.
746
766
  #
@@ -760,7 +780,7 @@ module Azure::ARM::ServiceBus
760
780
  # Set Headers
761
781
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
762
782
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
763
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
783
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
764
784
 
765
785
  request_url = @base_url || @client.base_url
766
786
 
@@ -779,7 +799,7 @@ module Azure::ARM::ServiceBus
779
799
  response_content = http_response.body
780
800
  unless status_code == 200
781
801
  error_model = JSON.load(response_content)
782
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
802
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
783
803
  end
784
804
 
785
805
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -787,8 +807,8 @@ module Azure::ARM::ServiceBus
787
807
  if status_code == 200
788
808
  begin
789
809
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
790
- result_mapper = SharedAccessAuthorizationRuleResource.mapper()
791
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
810
+ result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRule.mapper()
811
+ result.body = @client.deserialize(result_mapper, parsed_response)
792
812
  rescue Exception => e
793
813
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
794
814
  end
@@ -803,14 +823,15 @@ module Azure::ARM::ServiceBus
803
823
  #
804
824
  # Primary and secondary connection strings to the queue.
805
825
  #
806
- # @param resource_group_name [String] The name of the resource group.
807
- # @param namespace_name [String] The namespace name.
826
+ # @param resource_group_name [String] Name of the Resource group within the
827
+ # Azure subscription.
828
+ # @param namespace_name [String] The namespace name
808
829
  # @param queue_name [String] The queue name.
809
- # @param authorization_rule_name [String] The authorization rule name.
830
+ # @param authorization_rule_name [String] The authorizationrule name.
810
831
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
811
832
  # will be added to the HTTP request.
812
833
  #
813
- # @return [ResourceListKeys] operation results.
834
+ # @return [AccessKeys] operation results.
814
835
  #
815
836
  def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
816
837
  response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value!
@@ -820,10 +841,11 @@ module Azure::ARM::ServiceBus
820
841
  #
821
842
  # Primary and secondary connection strings to the queue.
822
843
  #
823
- # @param resource_group_name [String] The name of the resource group.
824
- # @param namespace_name [String] The namespace name.
844
+ # @param resource_group_name [String] Name of the Resource group within the
845
+ # Azure subscription.
846
+ # @param namespace_name [String] The namespace name
825
847
  # @param queue_name [String] The queue name.
826
- # @param authorization_rule_name [String] The authorization rule name.
848
+ # @param authorization_rule_name [String] The authorizationrule name.
827
849
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
828
850
  # will be added to the HTTP request.
829
851
  #
@@ -836,10 +858,11 @@ module Azure::ARM::ServiceBus
836
858
  #
837
859
  # Primary and secondary connection strings to the queue.
838
860
  #
839
- # @param resource_group_name [String] The name of the resource group.
840
- # @param namespace_name [String] The namespace name.
861
+ # @param resource_group_name [String] Name of the Resource group within the
862
+ # Azure subscription.
863
+ # @param namespace_name [String] The namespace name
841
864
  # @param queue_name [String] The queue name.
842
- # @param authorization_rule_name [String] The authorization rule name.
865
+ # @param authorization_rule_name [String] The authorizationrule name.
843
866
  # @param [Hash{String => String}] A hash of custom headers that will be added
844
867
  # to the HTTP request.
845
868
  #
@@ -859,7 +882,7 @@ module Azure::ARM::ServiceBus
859
882
  # Set Headers
860
883
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
861
884
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
862
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/ListKeys'
885
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/ListKeys'
863
886
 
864
887
  request_url = @base_url || @client.base_url
865
888
 
@@ -878,7 +901,7 @@ module Azure::ARM::ServiceBus
878
901
  response_content = http_response.body
879
902
  unless status_code == 200
880
903
  error_model = JSON.load(response_content)
881
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
904
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
882
905
  end
883
906
 
884
907
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -886,8 +909,8 @@ module Azure::ARM::ServiceBus
886
909
  if status_code == 200
887
910
  begin
888
911
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
889
- result_mapper = ResourceListKeys.mapper()
890
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
912
+ result_mapper = Azure::ARM::ServiceBus::Models::AccessKeys.mapper()
913
+ result.body = @client.deserialize(result_mapper, parsed_response)
891
914
  rescue Exception => e
892
915
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
893
916
  end
@@ -902,16 +925,17 @@ module Azure::ARM::ServiceBus
902
925
  #
903
926
  # Regenerates the primary or secondary connection strings to the queue.
904
927
  #
905
- # @param resource_group_name [String] The name of the resource group.
906
- # @param namespace_name [String] The namespace name.
928
+ # @param resource_group_name [String] Name of the Resource group within the
929
+ # Azure subscription.
930
+ # @param namespace_name [String] The namespace name
907
931
  # @param queue_name [String] The queue name.
908
- # @param authorization_rule_name [String] The authorization rule name.
909
- # @param parameters [RegenerateKeysParameters] Parameters supplied to
932
+ # @param authorization_rule_name [String] The authorizationrule name.
933
+ # @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
910
934
  # regenerate the authorization rule.
911
935
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
912
936
  # will be added to the HTTP request.
913
937
  #
914
- # @return [ResourceListKeys] operation results.
938
+ # @return [AccessKeys] operation results.
915
939
  #
916
940
  def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
917
941
  response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value!
@@ -921,11 +945,12 @@ module Azure::ARM::ServiceBus
921
945
  #
922
946
  # Regenerates the primary or secondary connection strings to the queue.
923
947
  #
924
- # @param resource_group_name [String] The name of the resource group.
925
- # @param namespace_name [String] The namespace name.
948
+ # @param resource_group_name [String] Name of the Resource group within the
949
+ # Azure subscription.
950
+ # @param namespace_name [String] The namespace name
926
951
  # @param queue_name [String] The queue name.
927
- # @param authorization_rule_name [String] The authorization rule name.
928
- # @param parameters [RegenerateKeysParameters] Parameters supplied to
952
+ # @param authorization_rule_name [String] The authorizationrule name.
953
+ # @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
929
954
  # regenerate the authorization rule.
930
955
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
931
956
  # will be added to the HTTP request.
@@ -939,11 +964,12 @@ module Azure::ARM::ServiceBus
939
964
  #
940
965
  # Regenerates the primary or secondary connection strings to the queue.
941
966
  #
942
- # @param resource_group_name [String] The name of the resource group.
943
- # @param namespace_name [String] The namespace name.
967
+ # @param resource_group_name [String] Name of the Resource group within the
968
+ # Azure subscription.
969
+ # @param namespace_name [String] The namespace name
944
970
  # @param queue_name [String] The queue name.
945
- # @param authorization_rule_name [String] The authorization rule name.
946
- # @param parameters [RegenerateKeysParameters] Parameters supplied to
971
+ # @param authorization_rule_name [String] The authorizationrule name.
972
+ # @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
947
973
  # regenerate the authorization rule.
948
974
  # @param [Hash{String => String}] A hash of custom headers that will be added
949
975
  # to the HTTP request.
@@ -969,11 +995,11 @@ module Azure::ARM::ServiceBus
969
995
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
970
996
 
971
997
  # Serialize Request
972
- request_mapper = RegenerateKeysParameters.mapper()
973
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
998
+ request_mapper = Azure::ARM::ServiceBus::Models::RegenerateAccessKeyParameters.mapper()
999
+ request_content = @client.serialize(request_mapper, parameters)
974
1000
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
975
1001
 
976
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/regenerateKeys'
1002
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/regenerateKeys'
977
1003
 
978
1004
  request_url = @base_url || @client.base_url
979
1005
 
@@ -993,7 +1019,7 @@ module Azure::ARM::ServiceBus
993
1019
  response_content = http_response.body
994
1020
  unless status_code == 200
995
1021
  error_model = JSON.load(response_content)
996
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1022
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
997
1023
  end
998
1024
 
999
1025
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1001,8 +1027,8 @@ module Azure::ARM::ServiceBus
1001
1027
  if status_code == 200
1002
1028
  begin
1003
1029
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1004
- result_mapper = ResourceListKeys.mapper()
1005
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1030
+ result_mapper = Azure::ARM::ServiceBus::Models::AccessKeys.mapper()
1031
+ result.body = @client.deserialize(result_mapper, parsed_response)
1006
1032
  rescue Exception => e
1007
1033
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1008
1034
  end
@@ -1022,10 +1048,10 @@ module Azure::ARM::ServiceBus
1022
1048
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1023
1049
  # will be added to the HTTP request.
1024
1050
  #
1025
- # @return [QueueListResult] operation results.
1051
+ # @return [SBQueueListResult] operation results.
1026
1052
  #
1027
- def list_all_next(next_page_link, custom_headers = nil)
1028
- response = list_all_next_async(next_page_link, custom_headers).value!
1053
+ def list_by_namespace_next(next_page_link, custom_headers = nil)
1054
+ response = list_by_namespace_next_async(next_page_link, custom_headers).value!
1029
1055
  response.body unless response.nil?
1030
1056
  end
1031
1057
 
@@ -1039,8 +1065,8 @@ module Azure::ARM::ServiceBus
1039
1065
  #
1040
1066
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1041
1067
  #
1042
- def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1043
- list_all_next_async(next_page_link, custom_headers).value!
1068
+ def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
1069
+ list_by_namespace_next_async(next_page_link, custom_headers).value!
1044
1070
  end
1045
1071
 
1046
1072
  #
@@ -1053,7 +1079,7 @@ module Azure::ARM::ServiceBus
1053
1079
  #
1054
1080
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1055
1081
  #
1056
- def list_all_next_async(next_page_link, custom_headers = nil)
1082
+ def list_by_namespace_next_async(next_page_link, custom_headers = nil)
1057
1083
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1058
1084
 
1059
1085
 
@@ -1080,7 +1106,7 @@ module Azure::ARM::ServiceBus
1080
1106
  response_content = http_response.body
1081
1107
  unless status_code == 200
1082
1108
  error_model = JSON.load(response_content)
1083
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1109
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1084
1110
  end
1085
1111
 
1086
1112
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1088,8 +1114,8 @@ module Azure::ARM::ServiceBus
1088
1114
  if status_code == 200
1089
1115
  begin
1090
1116
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1091
- result_mapper = QueueListResult.mapper()
1092
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1117
+ result_mapper = Azure::ARM::ServiceBus::Models::SBQueueListResult.mapper()
1118
+ result.body = @client.deserialize(result_mapper, parsed_response)
1093
1119
  rescue Exception => e
1094
1120
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1095
1121
  end
@@ -1109,7 +1135,7 @@ module Azure::ARM::ServiceBus
1109
1135
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1110
1136
  # will be added to the HTTP request.
1111
1137
  #
1112
- # @return [SharedAccessAuthorizationRuleListResult] operation results.
1138
+ # @return [SBAuthorizationRuleListResult] operation results.
1113
1139
  #
1114
1140
  def list_authorization_rules_next(next_page_link, custom_headers = nil)
1115
1141
  response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
@@ -1167,7 +1193,7 @@ module Azure::ARM::ServiceBus
1167
1193
  response_content = http_response.body
1168
1194
  unless status_code == 200
1169
1195
  error_model = JSON.load(response_content)
1170
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1196
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1171
1197
  end
1172
1198
 
1173
1199
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1175,8 +1201,8 @@ module Azure::ARM::ServiceBus
1175
1201
  if status_code == 200
1176
1202
  begin
1177
1203
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1178
- result_mapper = SharedAccessAuthorizationRuleListResult.mapper()
1179
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1204
+ result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRuleListResult.mapper()
1205
+ result.body = @client.deserialize(result_mapper, parsed_response)
1180
1206
  rescue Exception => e
1181
1207
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1182
1208
  end
@@ -1191,19 +1217,21 @@ module Azure::ARM::ServiceBus
1191
1217
  #
1192
1218
  # Gets the queues within a namespace.
1193
1219
  #
1194
- # @param resource_group_name [String] The name of the resource group.
1195
- # @param namespace_name [String] The namespace name.
1220
+ # @param resource_group_name [String] Name of the Resource group within the
1221
+ # Azure subscription.
1222
+ # @param namespace_name [String] The namespace name
1196
1223
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1197
1224
  # will be added to the HTTP request.
1198
1225
  #
1199
- # @return [QueueListResult] which provide lazy access to pages of the response.
1226
+ # @return [SBQueueListResult] which provide lazy access to pages of the
1227
+ # response.
1200
1228
  #
1201
- def list_all_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1202
- response = list_all_async(resource_group_name, namespace_name, custom_headers).value!
1229
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
1230
+ response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
1203
1231
  unless response.nil?
1204
1232
  page = response.body
1205
1233
  page.next_method = Proc.new do |next_page_link|
1206
- list_all_next_async(next_page_link, custom_headers)
1234
+ list_by_namespace_next_async(next_page_link, custom_headers)
1207
1235
  end
1208
1236
  page
1209
1237
  end
@@ -1212,14 +1240,15 @@ module Azure::ARM::ServiceBus
1212
1240
  #
1213
1241
  # Gets all authorization rules for a queue.
1214
1242
  #
1215
- # @param resource_group_name [String] The name of the resource group.
1243
+ # @param resource_group_name [String] Name of the Resource group within the
1244
+ # Azure subscription.
1216
1245
  # @param namespace_name [String] The namespace name
1217
1246
  # @param queue_name [String] The queue name.
1218
1247
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1219
1248
  # will be added to the HTTP request.
1220
1249
  #
1221
- # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
1222
- # to pages of the response.
1250
+ # @return [SBAuthorizationRuleListResult] which provide lazy access to pages of
1251
+ # the response.
1223
1252
  #
1224
1253
  def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers = nil)
1225
1254
  response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value!