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.
- checksums.yaml +4 -4
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +555 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +143 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +1268 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/access_rights.rb +1 -1
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +1 -1
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/check_name_availability_result.rb +13 -13
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +107 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +96 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb +108 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/entity_status.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +139 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +96 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +140 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +148 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +96 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_resource.rb +166 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_state.rb +27 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb +62 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/operation.rb +1 -1
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/operation_display.rb +1 -1
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/policykey.rb +16 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb +46 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/resource.rb +77 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/resource_list_keys.rb +93 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +98 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +83 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/sku.rb +66 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/sku_name.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/sku_tier.rb +17 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +82 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/models/unavailable_reason.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +1764 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +213 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_event_hub/version.rb +2 -2
- data/lib/2015-08-01/generated/azure_mgmt_event_hub.rb +61 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/consumer_groups.rb +6 -6
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/disaster_recovery_configs.rb +6 -6
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/event_hub_management_client.rb +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/event_hubs.rb +14 -14
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/access_keys.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/access_rights.rb +17 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/authorization_rule.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/authorization_rule_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/capture_description.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +44 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +71 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/consumer_group.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/destination.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/ehnamespace.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/encoding_capture_description.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/entity_status.rb +23 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/error_response.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/eventhub.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/key_type.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation.rb +56 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_display.rb +68 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +99 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/provisioning_state_dr.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/resource.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/role_disaster_recovery.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/sku.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/sku_name.rb +16 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/sku_tier.rb +1 -1
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/models/tracked_resource.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/namespaces.rb +24 -24
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub/operations.rb +3 -3
- data/lib/{generated/azure_mgmt_event_hub/module_definition.rb → 2017-04-01/generated/azure_mgmt_event_hub/version.rb} +3 -3
- data/lib/{generated → 2017-04-01/generated}/azure_mgmt_event_hub.rb +40 -40
- data/lib/azure_mgmt_event_hub.rb +3 -1
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/eventhub_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/eventhub_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/eventhub_profile_module.rb +178 -0
- data/lib/version.rb +7 -0
- metadata +88 -43
@@ -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::
|
6
|
+
module Azure::EventHub::Mgmt::V2017_04_01
|
7
7
|
#
|
8
8
|
# Azure Event Hubs client
|
9
9
|
#
|
@@ -75,7 +75,7 @@ module Azure::ARM::EventHub
|
|
75
75
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
76
76
|
|
77
77
|
# Serialize Request
|
78
|
-
request_mapper = Azure::
|
78
|
+
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityParameter.mapper()
|
79
79
|
request_content = @client.serialize(request_mapper, parameters)
|
80
80
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
81
81
|
|
@@ -107,7 +107,7 @@ module Azure::ARM::EventHub
|
|
107
107
|
if status_code == 200
|
108
108
|
begin
|
109
109
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
110
|
-
result_mapper = Azure::
|
110
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult.mapper()
|
111
111
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
112
112
|
rescue Exception => e
|
113
113
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -193,7 +193,7 @@ module Azure::ARM::EventHub
|
|
193
193
|
if status_code == 200
|
194
194
|
begin
|
195
195
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
196
|
-
result_mapper = Azure::
|
196
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespaceListResult.mapper()
|
197
197
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
198
198
|
rescue Exception => e
|
199
199
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -283,7 +283,7 @@ module Azure::ARM::EventHub
|
|
283
283
|
if status_code == 200
|
284
284
|
begin
|
285
285
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
286
|
-
result_mapper = Azure::
|
286
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespaceListResult.mapper()
|
287
287
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
288
288
|
rescue Exception => e
|
289
289
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -332,7 +332,7 @@ module Azure::ARM::EventHub
|
|
332
332
|
promise = promise.then do |response|
|
333
333
|
# Defining deserialization method.
|
334
334
|
deserialize_method = lambda do |parsed_response|
|
335
|
-
result_mapper = Azure::
|
335
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
336
336
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
337
337
|
end
|
338
338
|
|
@@ -465,7 +465,7 @@ module Azure::ARM::EventHub
|
|
465
465
|
if status_code == 200
|
466
466
|
begin
|
467
467
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
468
|
-
result_mapper = Azure::
|
468
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
469
469
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
470
470
|
rescue Exception => e
|
471
471
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -475,7 +475,7 @@ module Azure::ARM::EventHub
|
|
475
475
|
if status_code == 201
|
476
476
|
begin
|
477
477
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
478
|
-
result_mapper = Azure::
|
478
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
479
479
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
480
480
|
rescue Exception => e
|
481
481
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -553,7 +553,7 @@ module Azure::ARM::EventHub
|
|
553
553
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
554
554
|
|
555
555
|
# Serialize Request
|
556
|
-
request_mapper = Azure::
|
556
|
+
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
557
557
|
request_content = @client.serialize(request_mapper, parameters)
|
558
558
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
559
559
|
|
@@ -585,7 +585,7 @@ module Azure::ARM::EventHub
|
|
585
585
|
if status_code == 201
|
586
586
|
begin
|
587
587
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
588
|
-
result_mapper = Azure::
|
588
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
589
589
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
590
590
|
rescue Exception => e
|
591
591
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -595,7 +595,7 @@ module Azure::ARM::EventHub
|
|
595
595
|
if status_code == 200
|
596
596
|
begin
|
597
597
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
598
|
-
result_mapper = Azure::
|
598
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
599
599
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
600
600
|
rescue Exception => e
|
601
601
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -689,7 +689,7 @@ module Azure::ARM::EventHub
|
|
689
689
|
if status_code == 200
|
690
690
|
begin
|
691
691
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
692
|
-
result_mapper = Azure::
|
692
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult.mapper()
|
693
693
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
694
694
|
rescue Exception => e
|
695
695
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -768,7 +768,7 @@ module Azure::ARM::EventHub
|
|
768
768
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
769
769
|
|
770
770
|
# Serialize Request
|
771
|
-
request_mapper = Azure::
|
771
|
+
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
|
772
772
|
request_content = @client.serialize(request_mapper, parameters)
|
773
773
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
774
774
|
|
@@ -800,7 +800,7 @@ module Azure::ARM::EventHub
|
|
800
800
|
if status_code == 200
|
801
801
|
begin
|
802
802
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
803
|
-
result_mapper = Azure::
|
803
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
|
804
804
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
805
805
|
rescue Exception => e
|
806
806
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -985,7 +985,7 @@ module Azure::ARM::EventHub
|
|
985
985
|
if status_code == 200
|
986
986
|
begin
|
987
987
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
988
|
-
result_mapper = Azure::
|
988
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule.mapper()
|
989
989
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
990
990
|
rescue Exception => e
|
991
991
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1083,7 +1083,7 @@ module Azure::ARM::EventHub
|
|
1083
1083
|
if status_code == 200
|
1084
1084
|
begin
|
1085
1085
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1086
|
-
result_mapper = Azure::
|
1086
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys.mapper()
|
1087
1087
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1088
1088
|
rescue Exception => e
|
1089
1089
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1168,7 +1168,7 @@ module Azure::ARM::EventHub
|
|
1168
1168
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1169
1169
|
|
1170
1170
|
# Serialize Request
|
1171
|
-
request_mapper = Azure::
|
1171
|
+
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters.mapper()
|
1172
1172
|
request_content = @client.serialize(request_mapper, parameters)
|
1173
1173
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1174
1174
|
|
@@ -1200,7 +1200,7 @@ module Azure::ARM::EventHub
|
|
1200
1200
|
if status_code == 200
|
1201
1201
|
begin
|
1202
1202
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1203
|
-
result_mapper = Azure::
|
1203
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys.mapper()
|
1204
1204
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1205
1205
|
rescue Exception => e
|
1206
1206
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1278,7 +1278,7 @@ module Azure::ARM::EventHub
|
|
1278
1278
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1279
1279
|
|
1280
1280
|
# Serialize Request
|
1281
|
-
request_mapper = Azure::
|
1281
|
+
request_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
1282
1282
|
request_content = @client.serialize(request_mapper, parameters)
|
1283
1283
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1284
1284
|
|
@@ -1310,7 +1310,7 @@ module Azure::ARM::EventHub
|
|
1310
1310
|
if status_code == 201
|
1311
1311
|
begin
|
1312
1312
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1313
|
-
result_mapper = Azure::
|
1313
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
1314
1314
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1315
1315
|
rescue Exception => e
|
1316
1316
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1320,7 +1320,7 @@ module Azure::ARM::EventHub
|
|
1320
1320
|
if status_code == 200
|
1321
1321
|
begin
|
1322
1322
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1323
|
-
result_mapper = Azure::
|
1323
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace.mapper()
|
1324
1324
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1325
1325
|
rescue Exception => e
|
1326
1326
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1496,7 +1496,7 @@ module Azure::ARM::EventHub
|
|
1496
1496
|
if status_code == 200
|
1497
1497
|
begin
|
1498
1498
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1499
|
-
result_mapper = Azure::
|
1499
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespaceListResult.mapper()
|
1500
1500
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1501
1501
|
rescue Exception => e
|
1502
1502
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1583,7 +1583,7 @@ module Azure::ARM::EventHub
|
|
1583
1583
|
if status_code == 200
|
1584
1584
|
begin
|
1585
1585
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1586
|
-
result_mapper = Azure::
|
1586
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespaceListResult.mapper()
|
1587
1587
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1588
1588
|
rescue Exception => e
|
1589
1589
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1670,7 +1670,7 @@ module Azure::ARM::EventHub
|
|
1670
1670
|
if status_code == 200
|
1671
1671
|
begin
|
1672
1672
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1673
|
-
result_mapper = Azure::
|
1673
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult.mapper()
|
1674
1674
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1675
1675
|
rescue Exception => e
|
1676
1676
|
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::
|
6
|
+
module Azure::EventHub::Mgmt::V2017_04_01
|
7
7
|
#
|
8
8
|
# Azure Event Hubs client
|
9
9
|
#
|
@@ -89,7 +89,7 @@ module Azure::ARM::EventHub
|
|
89
89
|
if status_code == 200
|
90
90
|
begin
|
91
91
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
92
|
-
result_mapper = Azure::
|
92
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::OperationListResult.mapper()
|
93
93
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
94
94
|
rescue Exception => e
|
95
95
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -176,7 +176,7 @@ module Azure::ARM::EventHub
|
|
176
176
|
if status_code == 200
|
177
177
|
begin
|
178
178
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
179
|
-
result_mapper = Azure::
|
179
|
+
result_mapper = Azure::EventHub::Mgmt::V2017_04_01::Models::OperationListResult.mapper()
|
180
180
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
181
181
|
rescue Exception => e
|
182
182
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -16,49 +16,49 @@ require 'faraday'
|
|
16
16
|
require 'faraday-cookie_jar'
|
17
17
|
require 'concurrent'
|
18
18
|
require 'ms_rest'
|
19
|
-
require 'generated/azure_mgmt_event_hub/module_definition'
|
19
|
+
require '2017-04-01/generated/azure_mgmt_event_hub/module_definition'
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
|
-
module Azure::
|
23
|
-
autoload :Operations, 'generated/azure_mgmt_event_hub/operations.rb'
|
24
|
-
autoload :Namespaces, 'generated/azure_mgmt_event_hub/namespaces.rb'
|
25
|
-
autoload :DisasterRecoveryConfigs, 'generated/azure_mgmt_event_hub/disaster_recovery_configs.rb'
|
26
|
-
autoload :EventHubs, 'generated/azure_mgmt_event_hub/event_hubs.rb'
|
27
|
-
autoload :ConsumerGroups, 'generated/azure_mgmt_event_hub/consumer_groups.rb'
|
28
|
-
autoload :EventHubManagementClient, 'generated/azure_mgmt_event_hub/event_hub_management_client.rb'
|
22
|
+
module Azure::EventHub::Mgmt::V2017_04_01
|
23
|
+
autoload :Operations, '2017-04-01/generated/azure_mgmt_event_hub/operations.rb'
|
24
|
+
autoload :Namespaces, '2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb'
|
25
|
+
autoload :DisasterRecoveryConfigs, '2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb'
|
26
|
+
autoload :EventHubs, '2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb'
|
27
|
+
autoload :ConsumerGroups, '2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb'
|
28
|
+
autoload :EventHubManagementClient, '2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb'
|
29
29
|
|
30
30
|
module Models
|
31
|
-
autoload :CaptureDescription, 'generated/azure_mgmt_event_hub/models/capture_description.rb'
|
32
|
-
autoload :Destination, 'generated/azure_mgmt_event_hub/models/destination.rb'
|
33
|
-
autoload :Resource, 'generated/azure_mgmt_event_hub/models/resource.rb'
|
34
|
-
autoload :Operation, 'generated/azure_mgmt_event_hub/models/operation.rb'
|
35
|
-
autoload :ErrorResponse, 'generated/azure_mgmt_event_hub/models/error_response.rb'
|
36
|
-
autoload :OperationListResult, 'generated/azure_mgmt_event_hub/models/operation_list_result.rb'
|
37
|
-
autoload :EventHubListResult, 'generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
|
38
|
-
autoload :AccessKeys, 'generated/azure_mgmt_event_hub/models/access_keys.rb'
|
39
|
-
autoload :ArmDisasterRecoveryListResult, 'generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb'
|
40
|
-
autoload :Sku, 'generated/azure_mgmt_event_hub/models/sku.rb'
|
41
|
-
autoload :ConsumerGroupListResult, 'generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
|
42
|
-
autoload :AuthorizationRuleListResult, 'generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb'
|
43
|
-
autoload :CheckNameAvailabilityParameter, 'generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
|
44
|
-
autoload :EHNamespaceListResult, 'generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
|
45
|
-
autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_event_hub/models/check_name_availability_result.rb'
|
46
|
-
autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb'
|
47
|
-
autoload :OperationDisplay, 'generated/azure_mgmt_event_hub/models/operation_display.rb'
|
48
|
-
autoload :TrackedResource, 'generated/azure_mgmt_event_hub/models/tracked_resource.rb'
|
49
|
-
autoload :EHNamespace, 'generated/azure_mgmt_event_hub/models/ehnamespace.rb'
|
50
|
-
autoload :AuthorizationRule, 'generated/azure_mgmt_event_hub/models/authorization_rule.rb'
|
51
|
-
autoload :Eventhub, 'generated/azure_mgmt_event_hub/models/eventhub.rb'
|
52
|
-
autoload :ConsumerGroup, 'generated/azure_mgmt_event_hub/models/consumer_group.rb'
|
53
|
-
autoload :ArmDisasterRecovery, 'generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb'
|
54
|
-
autoload :SkuName, 'generated/azure_mgmt_event_hub/models/sku_name.rb'
|
55
|
-
autoload :SkuTier, 'generated/azure_mgmt_event_hub/models/sku_tier.rb'
|
56
|
-
autoload :AccessRights, 'generated/azure_mgmt_event_hub/models/access_rights.rb'
|
57
|
-
autoload :KeyType, 'generated/azure_mgmt_event_hub/models/key_type.rb'
|
58
|
-
autoload :EntityStatus, 'generated/azure_mgmt_event_hub/models/entity_status.rb'
|
59
|
-
autoload :EncodingCaptureDescription, 'generated/azure_mgmt_event_hub/models/encoding_capture_description.rb'
|
60
|
-
autoload :UnavailableReason, 'generated/azure_mgmt_event_hub/models/unavailable_reason.rb'
|
61
|
-
autoload :ProvisioningStateDR, 'generated/azure_mgmt_event_hub/models/provisioning_state_dr.rb'
|
62
|
-
autoload :RoleDisasterRecovery, 'generated/azure_mgmt_event_hub/models/role_disaster_recovery.rb'
|
31
|
+
autoload :CaptureDescription, '2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb'
|
32
|
+
autoload :Destination, '2017-04-01/generated/azure_mgmt_event_hub/models/destination.rb'
|
33
|
+
autoload :Resource, '2017-04-01/generated/azure_mgmt_event_hub/models/resource.rb'
|
34
|
+
autoload :Operation, '2017-04-01/generated/azure_mgmt_event_hub/models/operation.rb'
|
35
|
+
autoload :ErrorResponse, '2017-04-01/generated/azure_mgmt_event_hub/models/error_response.rb'
|
36
|
+
autoload :OperationListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb'
|
37
|
+
autoload :EventHubListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
|
38
|
+
autoload :AccessKeys, '2017-04-01/generated/azure_mgmt_event_hub/models/access_keys.rb'
|
39
|
+
autoload :ArmDisasterRecoveryListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb'
|
40
|
+
autoload :Sku, '2017-04-01/generated/azure_mgmt_event_hub/models/sku.rb'
|
41
|
+
autoload :ConsumerGroupListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
|
42
|
+
autoload :AuthorizationRuleListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb'
|
43
|
+
autoload :CheckNameAvailabilityParameter, '2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
|
44
|
+
autoload :EHNamespaceListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
|
45
|
+
autoload :CheckNameAvailabilityResult, '2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb'
|
46
|
+
autoload :RegenerateAccessKeyParameters, '2017-04-01/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb'
|
47
|
+
autoload :OperationDisplay, '2017-04-01/generated/azure_mgmt_event_hub/models/operation_display.rb'
|
48
|
+
autoload :TrackedResource, '2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb'
|
49
|
+
autoload :EHNamespace, '2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace.rb'
|
50
|
+
autoload :AuthorizationRule, '2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule.rb'
|
51
|
+
autoload :Eventhub, '2017-04-01/generated/azure_mgmt_event_hub/models/eventhub.rb'
|
52
|
+
autoload :ConsumerGroup, '2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group.rb'
|
53
|
+
autoload :ArmDisasterRecovery, '2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb'
|
54
|
+
autoload :SkuName, '2017-04-01/generated/azure_mgmt_event_hub/models/sku_name.rb'
|
55
|
+
autoload :SkuTier, '2017-04-01/generated/azure_mgmt_event_hub/models/sku_tier.rb'
|
56
|
+
autoload :AccessRights, '2017-04-01/generated/azure_mgmt_event_hub/models/access_rights.rb'
|
57
|
+
autoload :KeyType, '2017-04-01/generated/azure_mgmt_event_hub/models/key_type.rb'
|
58
|
+
autoload :EntityStatus, '2017-04-01/generated/azure_mgmt_event_hub/models/entity_status.rb'
|
59
|
+
autoload :EncodingCaptureDescription, '2017-04-01/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb'
|
60
|
+
autoload :UnavailableReason, '2017-04-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb'
|
61
|
+
autoload :ProvisioningStateDR, '2017-04-01/generated/azure_mgmt_event_hub/models/provisioning_state_dr.rb'
|
62
|
+
autoload :RoleDisasterRecovery, '2017-04-01/generated/azure_mgmt_event_hub/models/role_disaster_recovery.rb'
|
63
63
|
end
|
64
64
|
end
|
data/lib/azure_mgmt_event_hub.rb
CHANGED
@@ -2,4 +2,6 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require 'generated/azure_mgmt_event_hub'
|
5
|
+
require '2015-08-01/generated/azure_mgmt_event_hub'
|
6
|
+
require '2017-04-01/generated/azure_mgmt_event_hub'
|
7
|
+
require 'profiles/latest/eventhub_latest_profile_client'
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure::ARM
|
6
|
+
# The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
|
7
|
+
module Configurable
|
8
|
+
# @return [String] Azure tenant id (also known as domain).
|
9
|
+
attr_accessor :tenant_id
|
10
|
+
|
11
|
+
# @return [String] Azure client id.
|
12
|
+
attr_accessor :client_id
|
13
|
+
|
14
|
+
# @return [String] Azure secret key.
|
15
|
+
attr_accessor :client_secret
|
16
|
+
|
17
|
+
# @return [String] Azure subscription id.
|
18
|
+
attr_accessor :subscription_id
|
19
|
+
|
20
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
+
attr_accessor :active_directory_settings
|
22
|
+
|
23
|
+
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
+
attr_accessor :credentials
|
25
|
+
|
26
|
+
class << self
|
27
|
+
#
|
28
|
+
# List of configurable keys for {Azure::ARM::Client}.
|
29
|
+
# @return [Array] of option keys.
|
30
|
+
#
|
31
|
+
def keys
|
32
|
+
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Set configuration options using a block.
|
38
|
+
#
|
39
|
+
def configure
|
40
|
+
yield self
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Resets the configurable options to provided options or defaults.
|
45
|
+
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
+
#
|
47
|
+
def reset!(options = {})
|
48
|
+
Azure::ARM::Configurable.keys.each do |key|
|
49
|
+
default_value = Azure::ARM::Default.options[key]
|
50
|
+
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
+
end
|
52
|
+
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def config
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
#
|
63
|
+
# configures configurable options to default values
|
64
|
+
#
|
65
|
+
def setup_options
|
66
|
+
opts = {}
|
67
|
+
Azure::ARM::Configurable.keys.map do |key|
|
68
|
+
opts[key] = Azure::ARM::Default.options[key]
|
69
|
+
end
|
70
|
+
opts
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure::ARM
|
6
|
+
# Default configuration options for {Azure::ARM.Client}
|
7
|
+
module Default
|
8
|
+
class << self
|
9
|
+
#
|
10
|
+
# Default Azure Tenant Id.
|
11
|
+
# @return [String] Azure Tenant Id.
|
12
|
+
#
|
13
|
+
def tenant_id
|
14
|
+
ENV['AZURE_TENANT_ID']
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# Default Azure Client Id.
|
19
|
+
# @return [String] Azure Client Id.
|
20
|
+
#
|
21
|
+
def client_id
|
22
|
+
ENV['AZURE_CLIENT_ID']
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Default Azure Client Secret.
|
27
|
+
# @return [String] Azure Client Secret.
|
28
|
+
#
|
29
|
+
def client_secret
|
30
|
+
ENV['AZURE_CLIENT_SECRET']
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Default Azure Subscription Id.
|
35
|
+
# @return [String] Azure Subscription Id.
|
36
|
+
#
|
37
|
+
def subscription_id
|
38
|
+
ENV['AZURE_SUBSCRIPTION_ID']
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Default Azure credentials to authorize HTTP requests made by the service client.
|
43
|
+
# @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
|
44
|
+
#
|
45
|
+
def credentials
|
46
|
+
MsRest::TokenCredentials.new(
|
47
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
48
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Default Azure Active Directory Service Settings.
|
53
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
54
|
+
#
|
55
|
+
def active_directory_settings
|
56
|
+
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Configuration options.
|
61
|
+
# @return [Hash] Configuration options.
|
62
|
+
#
|
63
|
+
def options
|
64
|
+
Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'profiles/latest/eventhub_module_definition'
|
6
|
+
require 'profiles/latest/modules/eventhub_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::EventHub::Profiles::Latest::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the Latest profile SDK.
|
13
|
+
#
|
14
|
+
class Client < EventHubClass
|
15
|
+
include Azure::ARM::Configurable
|
16
|
+
|
17
|
+
|
18
|
+
def initialize(options = {})
|
19
|
+
super(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def credentials
|
23
|
+
if @credentials.nil?
|
24
|
+
self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
|
25
|
+
|
26
|
+
@credentials = MsRest::TokenCredentials.new(
|
27
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
28
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
29
|
+
end
|
30
|
+
@credentials
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::EventHub end
|
7
|
+
module Azure::EventHub::Profiles end
|
8
|
+
module Azure::EventHub::Profiles::Latest end
|
9
|
+
module Azure::EventHub::Profiles::Latest::Mgmt end
|