azure_mgmt_event_hub 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +555 -0
  3. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +143 -0
  4. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +1268 -0
  5. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/access_rights.rb +1 -1
  6. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +1 -1
  7. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/check_name_availability_result.rb +13 -13
  8. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +107 -0
  9. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +96 -0
  10. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb +108 -0
  11. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/entity_status.rb +1 -1
  12. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +139 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +96 -0
  14. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +140 -0
  15. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +148 -0
  16. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +96 -0
  17. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_resource.rb +166 -0
  18. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_state.rb +27 -0
  19. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb +62 -0
  20. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/operation.rb +1 -1
  21. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/operation_display.rb +1 -1
  22. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
  23. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/policykey.rb +16 -0
  24. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb +46 -0
  25. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/resource.rb +77 -0
  26. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/resource_list_keys.rb +93 -0
  27. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
  28. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +98 -0
  29. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +83 -0
  30. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/sku.rb +66 -0
  31. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/sku_name.rb +1 -1
  32. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/sku_tier.rb +17 -0
  33. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +82 -0
  34. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/unavailable_reason.rb +1 -1
  35. data/lib/2015-08-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  36. data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +1764 -0
  37. data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +213 -0
  38. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/version.rb +2 -2
  39. data/lib/2015-08-01/generated/azure_mgmt_event_hub.rb +61 -0
  40. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/consumer_groups.rb +6 -6
  41. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/disaster_recovery_configs.rb +6 -6
  42. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/event_hub_management_client.rb +3 -3
  43. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/event_hubs.rb +14 -14
  44. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/access_keys.rb +1 -1
  45. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/access_rights.rb +17 -0
  46. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +1 -1
  47. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb +1 -1
  48. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/authorization_rule.rb +1 -1
  49. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/authorization_rule_list_result.rb +1 -1
  50. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/capture_description.rb +1 -1
  51. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +44 -0
  52. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +71 -0
  53. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/consumer_group.rb +1 -1
  54. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
  55. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/destination.rb +1 -1
  56. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/ehnamespace.rb +1 -1
  57. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +1 -1
  58. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/encoding_capture_description.rb +1 -1
  59. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/entity_status.rb +23 -0
  60. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/error_response.rb +1 -1
  61. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
  62. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/eventhub.rb +1 -1
  63. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/key_type.rb +1 -1
  64. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation.rb +56 -0
  65. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_display.rb +68 -0
  66. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +99 -0
  67. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/provisioning_state_dr.rb +1 -1
  68. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +1 -1
  69. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/resource.rb +1 -1
  70. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/role_disaster_recovery.rb +1 -1
  71. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/sku.rb +1 -1
  72. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/sku_name.rb +16 -0
  73. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/sku_tier.rb +1 -1
  74. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/tracked_resource.rb +1 -1
  75. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
  76. data/lib/2017-04-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  77. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/namespaces.rb +24 -24
  78. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/operations.rb +3 -3
  79. data/lib/{generated/azure_mgmt_event_hub/module_definition.rb → 2017-04-01/generated/azure_mgmt_event_hub/version.rb} +3 -3
  80. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub.rb +40 -40
  81. data/lib/azure_mgmt_event_hub.rb +3 -1
  82. data/lib/module_definition.rb +7 -0
  83. data/lib/profiles/common/configurable.rb +73 -0
  84. data/lib/profiles/common/default.rb +68 -0
  85. data/lib/profiles/latest/eventhub_latest_profile_client.rb +33 -0
  86. data/lib/profiles/latest/eventhub_module_definition.rb +9 -0
  87. data/lib/profiles/latest/modules/eventhub_profile_module.rb +178 -0
  88. data/lib/version.rb +7 -0
  89. metadata +88 -43
@@ -0,0 +1,213 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2015_08_01
7
+ #
8
+ # Azure Event Hubs 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 [EventHubManagementClient] reference to the EventHubManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the available Event Hub 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 Event Hub 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 Event Hub 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.EventHub/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 MsRestAzure::AzureOperationError.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::EventHub::Mgmt::V2015_08_01::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 Event Hub 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 Event Hub 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 Event Hub 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 MsRestAzure::AzureOperationError.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::EventHub::Mgmt::V2015_08_01::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 Event Hub 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
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
7
- VERSION = '0.14.0'
6
+ module Azure::EventHub::Mgmt::V2015_08_01
7
+ VERSION = '0.15.0'
8
8
  end
@@ -0,0 +1,61 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2015-08-01/generated/azure_mgmt_event_hub/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::EventHub::Mgmt::V2015_08_01
23
+ autoload :Operations, '2015-08-01/generated/azure_mgmt_event_hub/operations.rb'
24
+ autoload :Namespaces, '2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb'
25
+ autoload :EventHubs, '2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb'
26
+ autoload :ConsumerGroups, '2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb'
27
+ autoload :EventHubManagementClient, '2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb'
28
+
29
+ module Models
30
+ autoload :SharedAccessAuthorizationRuleListResult, '2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb'
31
+ autoload :ResourceListKeys, '2015-08-01/generated/azure_mgmt_event_hub/models/resource_list_keys.rb'
32
+ autoload :Operation, '2015-08-01/generated/azure_mgmt_event_hub/models/operation.rb'
33
+ autoload :RegenerateKeysParameters, '2015-08-01/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb'
34
+ autoload :OperationDisplay, '2015-08-01/generated/azure_mgmt_event_hub/models/operation_display.rb'
35
+ autoload :Resource, '2015-08-01/generated/azure_mgmt_event_hub/models/resource.rb'
36
+ autoload :OperationListResult, '2015-08-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb'
37
+ autoload :NamespaceCreateOrUpdateParameters, '2015-08-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb'
38
+ autoload :CheckNameAvailabilityResult, '2015-08-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb'
39
+ autoload :NamespaceListResult, '2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb'
40
+ autoload :EventHubCreateOrUpdateParameters, '2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb'
41
+ autoload :NamespaceUpdateParameter, '2015-08-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb'
42
+ autoload :CheckNameAvailabilityParameter, '2015-08-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
43
+ autoload :EventHubListResult, '2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
44
+ autoload :Sku, '2015-08-01/generated/azure_mgmt_event_hub/models/sku.rb'
45
+ autoload :ConsumerGroupCreateOrUpdateParameters, '2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb'
46
+ autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, '2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb'
47
+ autoload :ConsumerGroupListResult, '2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
48
+ autoload :TrackedResource, '2015-08-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb'
49
+ autoload :NamespaceResource, '2015-08-01/generated/azure_mgmt_event_hub/models/namespace_resource.rb'
50
+ autoload :SharedAccessAuthorizationRuleResource, '2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb'
51
+ autoload :EventHubResource, '2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb'
52
+ autoload :ConsumerGroupResource, '2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb'
53
+ autoload :SkuName, '2015-08-01/generated/azure_mgmt_event_hub/models/sku_name.rb'
54
+ autoload :SkuTier, '2015-08-01/generated/azure_mgmt_event_hub/models/sku_tier.rb'
55
+ autoload :NamespaceState, '2015-08-01/generated/azure_mgmt_event_hub/models/namespace_state.rb'
56
+ autoload :AccessRights, '2015-08-01/generated/azure_mgmt_event_hub/models/access_rights.rb'
57
+ autoload :Policykey, '2015-08-01/generated/azure_mgmt_event_hub/models/policykey.rb'
58
+ autoload :EntityStatus, '2015-08-01/generated/azure_mgmt_event_hub/models/entity_status.rb'
59
+ autoload :UnavailableReason, '2015-08-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb'
60
+ end
61
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  #
8
8
  # Azure Event Hubs client
9
9
  #
@@ -97,7 +97,7 @@ module Azure::ARM::EventHub
97
97
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
98
98
 
99
99
  # Serialize Request
100
- request_mapper = Azure::ARM::EventHub::Models::ConsumerGroup.mapper()
100
+ request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup.mapper()
101
101
  request_content = @client.serialize(request_mapper, parameters)
102
102
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
103
103
 
@@ -129,7 +129,7 @@ module Azure::ARM::EventHub
129
129
  if status_code == 200
130
130
  begin
131
131
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
132
- result_mapper = Azure::ARM::EventHub::Models::ConsumerGroup.mapper()
132
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup.mapper()
133
133
  result.body = @client.deserialize(result_mapper, parsed_response)
134
134
  rescue Exception => e
135
135
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -322,7 +322,7 @@ module Azure::ARM::EventHub
322
322
  if status_code == 200
323
323
  begin
324
324
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
- result_mapper = Azure::ARM::EventHub::Models::ConsumerGroup.mapper()
325
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup.mapper()
326
326
  result.body = @client.deserialize(result_mapper, parsed_response)
327
327
  rescue Exception => e
328
328
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -423,7 +423,7 @@ module Azure::ARM::EventHub
423
423
  if status_code == 200
424
424
  begin
425
425
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
426
- result_mapper = Azure::ARM::EventHub::Models::ConsumerGroupListResult.mapper()
426
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroupListResult.mapper()
427
427
  result.body = @client.deserialize(result_mapper, parsed_response)
428
428
  rescue Exception => e
429
429
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -513,7 +513,7 @@ module Azure::ARM::EventHub
513
513
  if status_code == 200
514
514
  begin
515
515
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
516
- result_mapper = Azure::ARM::EventHub::Models::ConsumerGroupListResult.mapper()
516
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroupListResult.mapper()
517
517
  result.body = @client.deserialize(result_mapper, parsed_response)
518
518
  rescue Exception => e
519
519
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  #
8
8
  # Azure Event Hubs client
9
9
  #
@@ -102,7 +102,7 @@ module Azure::ARM::EventHub
102
102
  if status_code == 200
103
103
  begin
104
104
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
- result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecoveryListResult.mapper()
105
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult.mapper()
106
106
  result.body = @client.deserialize(result_mapper, parsed_response)
107
107
  rescue Exception => e
108
108
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -184,7 +184,7 @@ module Azure::ARM::EventHub
184
184
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
185
 
186
186
  # Serialize Request
187
- request_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecovery.mapper()
187
+ request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery.mapper()
188
188
  request_content = @client.serialize(request_mapper, parameters)
189
189
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
190
190
 
@@ -216,7 +216,7 @@ module Azure::ARM::EventHub
216
216
  if status_code == 200
217
217
  begin
218
218
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
219
- result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecovery.mapper()
219
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery.mapper()
220
220
  result.body = @client.deserialize(result_mapper, parsed_response)
221
221
  rescue Exception => e
222
222
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -404,7 +404,7 @@ module Azure::ARM::EventHub
404
404
  if status_code == 200
405
405
  begin
406
406
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
407
- result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecovery.mapper()
407
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery.mapper()
408
408
  result.body = @client.deserialize(result_mapper, parsed_response)
409
409
  rescue Exception => e
410
410
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -671,7 +671,7 @@ module Azure::ARM::EventHub
671
671
  if status_code == 200
672
672
  begin
673
673
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
674
- result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecoveryListResult.mapper()
674
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult.mapper()
675
675
  result.body = @client.deserialize(result_mapper, parsed_response)
676
676
  rescue Exception => e
677
677
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -138,8 +138,8 @@ module Azure::ARM::EventHub
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_event_hub'
141
- if defined? Azure::ARM::EventHub::VERSION
142
- sdk_information = "#{sdk_information}/#{Azure::ARM::EventHub::VERSION}"
141
+ if defined? Azure::EventHub::Mgmt::V2017_04_01::VERSION
142
+ sdk_information = "#{sdk_information}/#{Azure::EventHub::Mgmt::V2017_04_01::VERSION}"
143
143
  end
144
144
  add_user_agent_information(sdk_information)
145
145
  end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  #
8
8
  # Azure Event Hubs client
9
9
  #
@@ -102,7 +102,7 @@ module Azure::ARM::EventHub
102
102
  if status_code == 200
103
103
  begin
104
104
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
- result_mapper = Azure::ARM::EventHub::Models::EventHubListResult.mapper()
105
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EventHubListResult.mapper()
106
106
  result.body = @client.deserialize(result_mapper, parsed_response)
107
107
  rescue Exception => e
108
108
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -184,7 +184,7 @@ module Azure::ARM::EventHub
184
184
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
185
 
186
186
  # Serialize Request
187
- request_mapper = Azure::ARM::EventHub::Models::Eventhub.mapper()
187
+ request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub.mapper()
188
188
  request_content = @client.serialize(request_mapper, parameters)
189
189
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
190
190
 
@@ -216,7 +216,7 @@ module Azure::ARM::EventHub
216
216
  if status_code == 200
217
217
  begin
218
218
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
219
- result_mapper = Azure::ARM::EventHub::Models::Eventhub.mapper()
219
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub.mapper()
220
220
  result.body = @client.deserialize(result_mapper, parsed_response)
221
221
  rescue Exception => e
222
222
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -401,7 +401,7 @@ module Azure::ARM::EventHub
401
401
  if status_code == 200
402
402
  begin
403
403
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
404
- result_mapper = Azure::ARM::EventHub::Models::Eventhub.mapper()
404
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub.mapper()
405
405
  result.body = @client.deserialize(result_mapper, parsed_response)
406
406
  rescue Exception => e
407
407
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -499,7 +499,7 @@ module Azure::ARM::EventHub
499
499
  if status_code == 200
500
500
  begin
501
501
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
502
- result_mapper = Azure::ARM::EventHub::Models::AuthorizationRuleListResult.mapper()
502
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult.mapper()
503
503
  result.body = @client.deserialize(result_mapper, parsed_response)
504
504
  rescue Exception => e
505
505
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -582,7 +582,7 @@ module Azure::ARM::EventHub
582
582
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
583
583
 
584
584
  # Serialize Request
585
- request_mapper = Azure::ARM::EventHub::Models::AuthorizationRule.mapper()
585
+ request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
586
586
  request_content = @client.serialize(request_mapper, parameters)
587
587
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
588
588
 
@@ -614,7 +614,7 @@ module Azure::ARM::EventHub
614
614
  if status_code == 200
615
615
  begin
616
616
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
617
- result_mapper = Azure::ARM::EventHub::Models::AuthorizationRule.mapper()
617
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
618
618
  result.body = @client.deserialize(result_mapper, parsed_response)
619
619
  rescue Exception => e
620
620
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -716,7 +716,7 @@ module Azure::ARM::EventHub
716
716
  if status_code == 200
717
717
  begin
718
718
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
719
- result_mapper = Azure::ARM::EventHub::Models::AuthorizationRule.mapper()
719
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
720
720
  result.body = @client.deserialize(result_mapper, parsed_response)
721
721
  rescue Exception => e
722
722
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -909,7 +909,7 @@ module Azure::ARM::EventHub
909
909
  if status_code == 200
910
910
  begin
911
911
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
912
- result_mapper = Azure::ARM::EventHub::Models::AccessKeys.mapper()
912
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys.mapper()
913
913
  result.body = @client.deserialize(result_mapper, parsed_response)
914
914
  rescue Exception => e
915
915
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -995,7 +995,7 @@ module Azure::ARM::EventHub
995
995
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
996
996
 
997
997
  # Serialize Request
998
- request_mapper = Azure::ARM::EventHub::Models::RegenerateAccessKeyParameters.mapper()
998
+ request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
999
999
  request_content = @client.serialize(request_mapper, parameters)
1000
1000
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1001
1001
 
@@ -1027,7 +1027,7 @@ module Azure::ARM::EventHub
1027
1027
  if status_code == 200
1028
1028
  begin
1029
1029
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1030
- result_mapper = Azure::ARM::EventHub::Models::AccessKeys.mapper()
1030
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys.mapper()
1031
1031
  result.body = @client.deserialize(result_mapper, parsed_response)
1032
1032
  rescue Exception => e
1033
1033
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1114,7 +1114,7 @@ module Azure::ARM::EventHub
1114
1114
  if status_code == 200
1115
1115
  begin
1116
1116
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1117
- result_mapper = Azure::ARM::EventHub::Models::EventHubListResult.mapper()
1117
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EventHubListResult.mapper()
1118
1118
  result.body = @client.deserialize(result_mapper, parsed_response)
1119
1119
  rescue Exception => e
1120
1120
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1201,7 +1201,7 @@ module Azure::ARM::EventHub
1201
1201
  if status_code == 200
1202
1202
  begin
1203
1203
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1204
- result_mapper = Azure::ARM::EventHub::Models::AuthorizationRuleListResult.mapper()
1204
+ result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult.mapper()
1205
1205
  result.body = @client.deserialize(result_mapper, parsed_response)
1206
1206
  rescue Exception => e
1207
1207
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  module Models
8
8
  #
9
9
  # Namespace/EventHub Connection String
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
+ module Models
8
+ #
9
+ # Defines values for AccessRights
10
+ #
11
+ module AccessRights
12
+ Manage = "Manage"
13
+ Send = "Send"
14
+ Listen = "Listen"
15
+ end
16
+ end
17
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  module Models
8
8
  #
9
9
  # Single item in List or Get Alias(Disaster Recovery configuration)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  module Models
8
8
  #
9
9
  # The result of the List Alias(Disaster Recovery configuration) operation.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  module Models
8
8
  #
9
9
  # Single item in a List or Get AuthorizationRule operation
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  module Models
8
8
  #
9
9
  # The response from the List namespace operation.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventHub
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
7
  module Models
8
8
  #
9
9
  # Properties to configure capture description for eventhub
@@ -0,0 +1,44 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2017_04_01
7
+ module Models
8
+ #
9
+ # Parameter supplied to check Namespace name availability operation
10
+ #
11
+ class CheckNameAvailabilityParameter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name to check the namespace name availability
16
+ attr_accessor :name
17
+
18
+
19
+ #
20
+ # Mapper for CheckNameAvailabilityParameter class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'CheckNameAvailabilityParameter',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'CheckNameAvailabilityParameter',
30
+ model_properties: {
31
+ name: {
32
+ required: true,
33
+ serialized_name: 'name',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ end