azure_mgmt_event_hub 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +7 -6
  3. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +111 -0
  4. data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +11 -6
  5. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +36 -8
  6. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +11 -6
  7. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +36 -8
  8. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +12 -0
  9. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb +134 -0
  10. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +98 -0
  11. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb +101 -0
  12. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +60 -0
  13. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +99 -0
  14. data/lib/2017-04-01/generated/azure_mgmt_event_hub/regions.rb +224 -0
  15. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +51 -0
  16. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +503 -0
  17. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +257 -0
  18. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub2018preview_management_client.rb +145 -0
  19. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +136 -0
  20. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb +100 -0
  21. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_quota_configuration_properties.rb +56 -0
  22. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_sku.rb +64 -0
  23. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +212 -0
  24. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +99 -0
  25. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +58 -0
  26. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule.rb +96 -0
  27. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb +100 -0
  28. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ipaction.rb +16 -0
  29. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation.rb +59 -0
  30. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_display.rb +72 -0
  31. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_list_result.rb +103 -0
  32. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +71 -0
  33. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb +75 -0
  34. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_name.rb +16 -0
  35. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_tier.rb +16 -0
  36. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +92 -0
  37. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule.rb +73 -0
  38. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb +100 -0
  39. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  40. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +2006 -0
  41. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/operations.rb +216 -0
  42. data/lib/azure_mgmt_event_hub.rb +2 -1
  43. data/lib/profiles/latest/modules/eventhub_profile_module.rb +61 -111
  44. data/lib/version.rb +1 -1
  45. metadata +37 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b579f156f8ee8cd12bcb3c40c10f886fff7112f
4
- data.tar.gz: b53409f6877b4a3630f5e8b2afeffa8d03c817ef
3
+ metadata.gz: 21314af3d9470e168399d17e264e13778ed1f485
4
+ data.tar.gz: d6ea18e728d0409deacdd742616307a356a9d3d1
5
5
  SHA512:
6
- metadata.gz: c3eb53531774a344e20bb78df9bd0661743b0e75d72c523cb5452354cc4f48671996aaeafa47119bf86423cc431bfeb61279175eec0c6976a5911574912cd434
7
- data.tar.gz: 69fc13a7171cc9f3d4c6f5b877eff2cc7f1b1a5e39f1e770178fda072cf919a00f30971b1e98ea8e31cf4aeb517bdc69e0eb42552312cb4052fcc4934b022a59
6
+ metadata.gz: b2d4c00cfbe47bd8b70cbd2e10e560c268d73893fb1f1bffef950b1c3ad142d52358ef92f452af89730bc12e06249d75d56e8ada6423924a8122e272f863904a
7
+ data.tar.gz: 007dfd53dc165d51e93186982a07cf91d92c3f0c8bfff6737ad73dd34936833d455d9c945e307556653a6085e923a56b8742f64255efab17cbe3d89012375d26
@@ -25,15 +25,16 @@ module Azure::EventHub::Mgmt::V2015_08_01
25
25
  # @return [String] Client API Version.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [Operations] operations
@@ -137,7 +138,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
137
138
  #
138
139
  def add_telemetry
139
140
  sdk_information = 'azure_mgmt_event_hub'
140
- sdk_information = "#{sdk_information}/0.16.0"
141
+ sdk_information = "#{sdk_information}/0.17.0"
141
142
  add_user_agent_information(sdk_information)
142
143
  end
143
144
  end
@@ -779,6 +779,117 @@ module Azure::EventHub::Mgmt::V2015_08_01
779
779
  promise.execute
780
780
  end
781
781
 
782
+ #
783
+ # Gets an AuthorizationRule for an Event Hub by rule name.
784
+ #
785
+ # @param resource_group_name [String] Name of the resource group within the
786
+ # azure subscription.
787
+ # @param namespace_name [String] The Namespace name
788
+ # @param event_hub_name [String] The Event Hub name
789
+ # @param authorization_rule_name [String] The authorization rule name.
790
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
791
+ # will be added to the HTTP request.
792
+ #
793
+ # @return [SharedAccessAuthorizationRuleResource] operation results.
794
+ #
795
+ def postt_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
796
+ response = postt_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
797
+ response.body unless response.nil?
798
+ end
799
+
800
+ #
801
+ # Gets an AuthorizationRule for an Event Hub by rule name.
802
+ #
803
+ # @param resource_group_name [String] Name of the resource group within the
804
+ # azure subscription.
805
+ # @param namespace_name [String] The Namespace name
806
+ # @param event_hub_name [String] The Event Hub name
807
+ # @param authorization_rule_name [String] The authorization rule name.
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
+ #
813
+ def postt_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
814
+ postt_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
815
+ end
816
+
817
+ #
818
+ # Gets an AuthorizationRule for an Event Hub by rule name.
819
+ #
820
+ # @param resource_group_name [String] Name of the resource group within the
821
+ # azure subscription.
822
+ # @param namespace_name [String] The Namespace name
823
+ # @param event_hub_name [String] The Event Hub name
824
+ # @param authorization_rule_name [String] The authorization rule name.
825
+ # @param [Hash{String => String}] A hash of custom headers that will be added
826
+ # to the HTTP request.
827
+ #
828
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
829
+ #
830
+ def postt_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil)
831
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
832
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
833
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
834
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
835
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
836
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
837
+ fail ArgumentError, 'event_hub_name is nil' if event_hub_name.nil?
838
+ fail ArgumentError, "'event_hub_name' should satisfy the constraint - 'MaxLength': '50'" if !event_hub_name.nil? && event_hub_name.length > 50
839
+ fail ArgumentError, "'event_hub_name' should satisfy the constraint - 'MinLength': '1'" if !event_hub_name.nil? && event_hub_name.length < 1
840
+ fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
841
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
842
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
843
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
844
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
845
+
846
+
847
+ request_headers = {}
848
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
849
+
850
+ # Set Headers
851
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
852
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
853
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'
854
+
855
+ request_url = @base_url || @client.base_url
856
+
857
+ options = {
858
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
859
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'eventHubName' => event_hub_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
860
+ query_params: {'api-version' => @client.api_version},
861
+ headers: request_headers.merge(custom_headers || {}),
862
+ base_url: request_url
863
+ }
864
+ promise = @client.make_request_async(:post, path_template, options)
865
+
866
+ promise = promise.then do |result|
867
+ http_response = result.response
868
+ status_code = http_response.status
869
+ response_content = http_response.body
870
+ unless status_code == 200
871
+ error_model = JSON.load(response_content)
872
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
873
+ end
874
+
875
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
876
+ # Deserialize Response
877
+ if status_code == 200
878
+ begin
879
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
880
+ result_mapper = Azure::EventHub::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleResource.mapper()
881
+ result.body = @client.deserialize(result_mapper, parsed_response)
882
+ rescue Exception => e
883
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
884
+ end
885
+ end
886
+
887
+ result
888
+ end
889
+
890
+ promise.execute
891
+ end
892
+
782
893
  #
783
894
  # Deletes an Event Hub AuthorizationRule.
784
895
  #
@@ -25,32 +25,37 @@ module Azure::EventHub::Mgmt::V2017_04_01
25
25
  autoload :DisasterRecoveryConfigs, '2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb'
26
26
  autoload :EventHubs, '2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb'
27
27
  autoload :ConsumerGroups, '2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb'
28
+ autoload :Regions, '2017-04-01/generated/azure_mgmt_event_hub/regions.rb'
28
29
  autoload :EventHubManagementClient, '2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb'
29
30
 
30
31
  module Models
32
+ autoload :MessagingRegionsProperties, '2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb'
31
33
  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
34
  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
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'
36
+ autoload :ArmDisasterRecoveryListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb'
37
37
  autoload :EventHubListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
38
+ autoload :MessagingRegionsListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb'
38
39
  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
40
  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'
41
+ autoload :Destination, '2017-04-01/generated/azure_mgmt_event_hub/models/destination.rb'
43
42
  autoload :CheckNameAvailabilityParameter, '2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
44
43
  autoload :EHNamespaceListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
45
44
  autoload :CheckNameAvailabilityResult, '2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb'
46
45
  autoload :RegenerateAccessKeyParameters, '2017-04-01/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb'
47
46
  autoload :OperationDisplay, '2017-04-01/generated/azure_mgmt_event_hub/models/operation_display.rb'
47
+ autoload :AuthorizationRuleListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb'
48
+ autoload :Operation, '2017-04-01/generated/azure_mgmt_event_hub/models/operation.rb'
49
+ autoload :Sku, '2017-04-01/generated/azure_mgmt_event_hub/models/sku.rb'
50
+ autoload :OperationListResult, '2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb'
48
51
  autoload :TrackedResource, '2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb'
49
52
  autoload :EHNamespace, '2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace.rb'
50
53
  autoload :AuthorizationRule, '2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule.rb'
51
54
  autoload :Eventhub, '2017-04-01/generated/azure_mgmt_event_hub/models/eventhub.rb'
52
55
  autoload :ConsumerGroup, '2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group.rb'
53
56
  autoload :ArmDisasterRecovery, '2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb'
57
+ autoload :MessagingRegions, '2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb'
58
+ autoload :MessagingPlan, '2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb'
54
59
  autoload :SkuName, '2017-04-01/generated/azure_mgmt_event_hub/models/sku_name.rb'
55
60
  autoload :SkuTier, '2017-04-01/generated/azure_mgmt_event_hub/models/sku_tier.rb'
56
61
  autoload :AccessRights, '2017-04-01/generated/azure_mgmt_event_hub/models/access_rights.rb'
@@ -365,13 +365,19 @@ module Azure::EventHub::Mgmt::V2017_04_01
365
365
  # azure subscription.
366
366
  # @param namespace_name [String] The Namespace name
367
367
  # @param event_hub_name [String] The Event Hub name
368
+ # @param skip [Integer] Skip is only used if a previous operation returned a
369
+ # partial result. If a previous response contains a nextLink element, the value
370
+ # of the nextLink element will include a skip parameter that specifies a
371
+ # starting point to use for subsequent calls.
372
+ # @param top [Integer] May be used to limit the number of results to the most
373
+ # recent N usageDetails.
368
374
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
375
  # will be added to the HTTP request.
370
376
  #
371
377
  # @return [Array<ConsumerGroup>] operation results.
372
378
  #
373
- def list_by_event_hub(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
374
- first_page = list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers)
379
+ def list_by_event_hub(resource_group_name, namespace_name, event_hub_name, skip:nil, top:nil, custom_headers:nil)
380
+ first_page = list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, skip:skip, top:top, custom_headers:custom_headers)
375
381
  first_page.get_all_items
376
382
  end
377
383
 
@@ -383,13 +389,19 @@ module Azure::EventHub::Mgmt::V2017_04_01
383
389
  # azure subscription.
384
390
  # @param namespace_name [String] The Namespace name
385
391
  # @param event_hub_name [String] The Event Hub name
392
+ # @param skip [Integer] Skip is only used if a previous operation returned a
393
+ # partial result. If a previous response contains a nextLink element, the value
394
+ # of the nextLink element will include a skip parameter that specifies a
395
+ # starting point to use for subsequent calls.
396
+ # @param top [Integer] May be used to limit the number of results to the most
397
+ # recent N usageDetails.
386
398
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
387
399
  # will be added to the HTTP request.
388
400
  #
389
401
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
390
402
  #
391
- def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
392
- list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
403
+ def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, skip:nil, top:nil, custom_headers:nil)
404
+ list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, skip:skip, top:top, custom_headers:custom_headers).value!
393
405
  end
394
406
 
395
407
  #
@@ -400,12 +412,18 @@ module Azure::EventHub::Mgmt::V2017_04_01
400
412
  # azure subscription.
401
413
  # @param namespace_name [String] The Namespace name
402
414
  # @param event_hub_name [String] The Event Hub name
415
+ # @param skip [Integer] Skip is only used if a previous operation returned a
416
+ # partial result. If a previous response contains a nextLink element, the value
417
+ # of the nextLink element will include a skip parameter that specifies a
418
+ # starting point to use for subsequent calls.
419
+ # @param top [Integer] May be used to limit the number of results to the most
420
+ # recent N usageDetails.
403
421
  # @param [Hash{String => String}] A hash of custom headers that will be added
404
422
  # to the HTTP request.
405
423
  #
406
424
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
407
425
  #
408
- def list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
426
+ def list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, skip:nil, top:nil, custom_headers:nil)
409
427
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
410
428
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
411
429
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -416,6 +434,10 @@ module Azure::EventHub::Mgmt::V2017_04_01
416
434
  fail ArgumentError, "'event_hub_name' should satisfy the constraint - 'MinLength': '1'" if !event_hub_name.nil? && event_hub_name.length < 1
417
435
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
418
436
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
437
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !skip.nil? && skip > 1000
438
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
439
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
440
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
419
441
 
420
442
 
421
443
  request_headers = {}
@@ -431,7 +453,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
431
453
  options = {
432
454
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
433
455
  path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'eventHubName' => event_hub_name,'subscriptionId' => @client.subscription_id},
434
- query_params: {'api-version' => @client.api_version},
456
+ query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top},
435
457
  headers: request_headers.merge(custom_headers || {}),
436
458
  base_url: request_url
437
459
  }
@@ -563,14 +585,20 @@ module Azure::EventHub::Mgmt::V2017_04_01
563
585
  # azure subscription.
564
586
  # @param namespace_name [String] The Namespace name
565
587
  # @param event_hub_name [String] The Event Hub name
588
+ # @param skip [Integer] Skip is only used if a previous operation returned a
589
+ # partial result. If a previous response contains a nextLink element, the value
590
+ # of the nextLink element will include a skip parameter that specifies a
591
+ # starting point to use for subsequent calls.
592
+ # @param top [Integer] May be used to limit the number of results to the most
593
+ # recent N usageDetails.
566
594
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
595
  # will be added to the HTTP request.
568
596
  #
569
597
  # @return [ConsumerGroupListResult] which provide lazy access to pages of the
570
598
  # response.
571
599
  #
572
- def list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil)
573
- response = list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value!
600
+ def list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, skip:nil, top:nil, custom_headers:nil)
601
+ response = list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, skip:skip, top:top, custom_headers:custom_headers).value!
574
602
  unless response.nil?
575
603
  page = response.body
576
604
  page.next_method = Proc.new do |next_page_link|
@@ -25,15 +25,16 @@ module Azure::EventHub::Mgmt::V2017_04_01
25
25
  # @return [String] Client API Version.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [Operations] operations
@@ -51,6 +52,9 @@ module Azure::EventHub::Mgmt::V2017_04_01
51
52
  # @return [ConsumerGroups] consumer_groups
52
53
  attr_reader :consumer_groups
53
54
 
55
+ # @return [Regions] regions
56
+ attr_reader :regions
57
+
54
58
  #
55
59
  # Creates initializes a new instance of the EventHubManagementClient class.
56
60
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -69,6 +73,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
69
73
  @disaster_recovery_configs = DisasterRecoveryConfigs.new(self)
70
74
  @event_hubs = EventHubs.new(self)
71
75
  @consumer_groups = ConsumerGroups.new(self)
76
+ @regions = Regions.new(self)
72
77
  @api_version = '2017-04-01'
73
78
  @accept_language = 'en-US'
74
79
  @long_running_operation_retry_timeout = 30
@@ -141,7 +146,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
141
146
  #
142
147
  def add_telemetry
143
148
  sdk_information = 'azure_mgmt_event_hub'
144
- sdk_information = "#{sdk_information}/0.16.0"
149
+ sdk_information = "#{sdk_information}/0.17.0"
145
150
  add_user_agent_information(sdk_information)
146
151
  end
147
152
  end
@@ -27,13 +27,19 @@ module Azure::EventHub::Mgmt::V2017_04_01
27
27
  # @param resource_group_name [String] Name of the resource group within the
28
28
  # azure subscription.
29
29
  # @param namespace_name [String] The Namespace name
30
+ # @param skip [Integer] Skip is only used if a previous operation returned a
31
+ # partial result. If a previous response contains a nextLink element, the value
32
+ # of the nextLink element will include a skip parameter that specifies a
33
+ # starting point to use for subsequent calls.
34
+ # @param top [Integer] May be used to limit the number of results to the most
35
+ # recent N usageDetails.
30
36
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
37
  # will be added to the HTTP request.
32
38
  #
33
39
  # @return [Array<Eventhub>] operation results.
34
40
  #
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:custom_headers)
41
+ def list_by_namespace(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
42
+ first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers)
37
43
  first_page.get_all_items
38
44
  end
39
45
 
@@ -43,13 +49,19 @@ module Azure::EventHub::Mgmt::V2017_04_01
43
49
  # @param resource_group_name [String] Name of the resource group within the
44
50
  # azure subscription.
45
51
  # @param namespace_name [String] The Namespace name
52
+ # @param skip [Integer] Skip is only used if a previous operation returned a
53
+ # partial result. If a previous response contains a nextLink element, the value
54
+ # of the nextLink element will include a skip parameter that specifies a
55
+ # starting point to use for subsequent calls.
56
+ # @param top [Integer] May be used to limit the number of results to the most
57
+ # recent N usageDetails.
46
58
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
59
  # will be added to the HTTP request.
48
60
  #
49
61
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
62
  #
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:custom_headers).value!
63
+ def list_by_namespace_with_http_info(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
64
+ list_by_namespace_async(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers).value!
53
65
  end
54
66
 
55
67
  #
@@ -58,12 +70,18 @@ module Azure::EventHub::Mgmt::V2017_04_01
58
70
  # @param resource_group_name [String] Name of the resource group within the
59
71
  # azure subscription.
60
72
  # @param namespace_name [String] The Namespace name
73
+ # @param skip [Integer] Skip is only used if a previous operation returned a
74
+ # partial result. If a previous response contains a nextLink element, the value
75
+ # of the nextLink element will include a skip parameter that specifies a
76
+ # starting point to use for subsequent calls.
77
+ # @param top [Integer] May be used to limit the number of results to the most
78
+ # recent N usageDetails.
61
79
  # @param [Hash{String => String}] A hash of custom headers that will be added
62
80
  # to the HTTP request.
63
81
  #
64
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
83
  #
66
- def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil)
84
+ def list_by_namespace_async(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
67
85
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
86
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
87
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -72,6 +90,10 @@ module Azure::EventHub::Mgmt::V2017_04_01
72
90
  fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
73
91
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
92
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
93
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !skip.nil? && skip > 1000
94
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
95
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
96
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
75
97
 
76
98
 
77
99
  request_headers = {}
@@ -87,7 +109,7 @@ module Azure::EventHub::Mgmt::V2017_04_01
87
109
  options = {
88
110
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
89
111
  path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
90
- query_params: {'api-version' => @client.api_version},
112
+ query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top},
91
113
  headers: request_headers.merge(custom_headers || {}),
92
114
  base_url: request_url
93
115
  }
@@ -1280,14 +1302,20 @@ module Azure::EventHub::Mgmt::V2017_04_01
1280
1302
  # @param resource_group_name [String] Name of the resource group within the
1281
1303
  # azure subscription.
1282
1304
  # @param namespace_name [String] The Namespace name
1305
+ # @param skip [Integer] Skip is only used if a previous operation returned a
1306
+ # partial result. If a previous response contains a nextLink element, the value
1307
+ # of the nextLink element will include a skip parameter that specifies a
1308
+ # starting point to use for subsequent calls.
1309
+ # @param top [Integer] May be used to limit the number of results to the most
1310
+ # recent N usageDetails.
1283
1311
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1284
1312
  # will be added to the HTTP request.
1285
1313
  #
1286
1314
  # @return [EventHubListResult] which provide lazy access to pages of the
1287
1315
  # response.
1288
1316
  #
1289
- def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1290
- response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1317
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
1318
+ response = list_by_namespace_async(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers).value!
1291
1319
  unless response.nil?
1292
1320
  page = response.body
1293
1321
  page.next_method = Proc.new do |next_page_link|