azure_mgmt_service_bus 0.16.0 → 0.17.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +1 -1
  3. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +1 -1
  4. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +1 -1
  5. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_list_result.rb +1 -1
  6. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/resource.rb +9 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +1 -1
  8. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +1 -1
  9. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +0 -12
  10. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_list_result.rb +1 -1
  11. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_resource.rb +0 -12
  12. data/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +15 -15
  13. data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +126 -15
  14. data/lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +7 -6
  15. data/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +129 -18
  16. data/lib/2017-04-01/generated/azure_mgmt_service_bus.rb +31 -20
  17. data/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb +9 -9
  18. data/lib/2017-04-01/generated/azure_mgmt_service_bus/migration_configs.rb +777 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery.rb +14 -2
  20. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery_list_result.rb +1 -1
  21. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +1 -1
  22. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/correlation_filter.rb +19 -0
  23. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/default_action.rb +16 -0
  24. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/error_response.rb +1 -1
  25. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb +1 -1
  26. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/migration_config_list_result.rb +100 -0
  27. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/migration_config_properties.rb +123 -0
  28. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/name_space_type.rb +19 -0
  29. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/network_rule_ipaction.rb +15 -0
  30. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/network_rule_set.rb +114 -0
  31. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/nwrule_set_ip_rules.rb +59 -0
  32. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/nwrule_set_virtual_network_rules.rb +59 -0
  33. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +1 -1
  34. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb +1 -1
  35. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb +1 -1
  36. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/resource.rb +9 -0
  37. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/rule_list_result.rb +1 -1
  38. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb +1 -1
  39. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace.rb +1 -1
  40. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb +1 -1
  41. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_migrate.rb +48 -0
  42. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb +1 -1
  43. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue.rb +12 -0
  44. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue_list_result.rb +1 -1
  45. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsubscription_list_result.rb +1 -1
  46. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbtopic.rb +1 -1
  47. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbtopic_list_result.rb +1 -1
  48. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/subnet.rb +46 -0
  49. data/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb +326 -15
  50. data/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb +51 -23
  51. data/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb +36 -8
  52. data/lib/2017-04-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +11 -6
  53. data/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb +36 -8
  54. data/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb +54 -26
  55. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus.rb +53 -0
  56. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/default_action.rb +16 -0
  57. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/error_response.rb +58 -0
  58. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/ip_filter_rule.rb +96 -0
  59. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/ip_filter_rule_list_result.rb +100 -0
  60. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/ipaction.rb +16 -0
  61. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/network_rule_ipaction.rb +15 -0
  62. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/network_rule_set.rb +114 -0
  63. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/nwrule_set_ip_rules.rb +58 -0
  64. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/nwrule_set_virtual_network_rules.rb +59 -0
  65. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation.rb +59 -0
  66. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation_display.rb +72 -0
  67. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation_list_result.rb +103 -0
  68. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/resource.rb +80 -0
  69. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb +92 -0
  70. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace.rb +171 -0
  71. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb +99 -0
  72. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb +171 -0
  73. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbsku.rb +73 -0
  74. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sku_name.rb +17 -0
  75. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sku_tier.rb +17 -0
  76. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/subnet.rb +46 -0
  77. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/tracked_resource.rb +92 -0
  78. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/virtual_network_rule.rb +73 -0
  79. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/virtual_network_rule_list_result.rb +100 -0
  80. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/module_definition.rb +9 -0
  81. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/namespaces.rb +2211 -0
  82. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/operations.rb +216 -0
  83. data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/service_bus_management_client.rb +137 -0
  84. data/lib/azure_mgmt_service_bus.rb +2 -1
  85. data/lib/profiles/latest/modules/servicebus_profile_module.rb +107 -65
  86. data/lib/version.rb +1 -1
  87. metadata +45 -5
@@ -27,13 +27,19 @@ module Azure::ServiceBus::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<SBTopic>] 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::ServiceBus::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::ServiceBus::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::ServiceBus::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::ServiceBus::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
  }
@@ -537,13 +559,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
537
559
  end
538
560
 
539
561
  #
540
- # Creates an authorizatio rule for the specified topic.
562
+ # Creates an authorization rule for the specified topic.
541
563
  #
542
564
  # @param resource_group_name [String] Name of the Resource group within the
543
565
  # Azure subscription.
544
566
  # @param namespace_name [String] The namespace name
545
567
  # @param topic_name [String] The topic name.
546
- # @param authorization_rule_name [String] The authorizationrule name.
568
+ # @param authorization_rule_name [String] The authorization rule name.
547
569
  # @param parameters [SBAuthorizationRule] The shared access authorization rule.
548
570
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
549
571
  # will be added to the HTTP request.
@@ -556,13 +578,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
556
578
  end
557
579
 
558
580
  #
559
- # Creates an authorizatio rule for the specified topic.
581
+ # Creates an authorization rule for the specified topic.
560
582
  #
561
583
  # @param resource_group_name [String] Name of the Resource group within the
562
584
  # Azure subscription.
563
585
  # @param namespace_name [String] The namespace name
564
586
  # @param topic_name [String] The topic name.
565
- # @param authorization_rule_name [String] The authorizationrule name.
587
+ # @param authorization_rule_name [String] The authorization rule name.
566
588
  # @param parameters [SBAuthorizationRule] The shared access authorization rule.
567
589
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
568
590
  # will be added to the HTTP request.
@@ -574,13 +596,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
574
596
  end
575
597
 
576
598
  #
577
- # Creates an authorizatio rule for the specified topic.
599
+ # Creates an authorization rule for the specified topic.
578
600
  #
579
601
  # @param resource_group_name [String] Name of the Resource group within the
580
602
  # Azure subscription.
581
603
  # @param namespace_name [String] The namespace name
582
604
  # @param topic_name [String] The topic name.
583
- # @param authorization_rule_name [String] The authorizationrule name.
605
+ # @param authorization_rule_name [String] The authorization rule name.
584
606
  # @param parameters [SBAuthorizationRule] The shared access authorization rule.
585
607
  # @param [Hash{String => String}] A hash of custom headers that will be added
586
608
  # to the HTTP request.
@@ -664,7 +686,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
664
686
  # Azure subscription.
665
687
  # @param namespace_name [String] The namespace name
666
688
  # @param topic_name [String] The topic name.
667
- # @param authorization_rule_name [String] The authorizationrule name.
689
+ # @param authorization_rule_name [String] The authorization rule name.
668
690
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
669
691
  # will be added to the HTTP request.
670
692
  #
@@ -682,7 +704,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
682
704
  # Azure subscription.
683
705
  # @param namespace_name [String] The namespace name
684
706
  # @param topic_name [String] The topic name.
685
- # @param authorization_rule_name [String] The authorizationrule name.
707
+ # @param authorization_rule_name [String] The authorization rule name.
686
708
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
687
709
  # will be added to the HTTP request.
688
710
  #
@@ -699,7 +721,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
699
721
  # Azure subscription.
700
722
  # @param namespace_name [String] The namespace name
701
723
  # @param topic_name [String] The topic name.
702
- # @param authorization_rule_name [String] The authorizationrule name.
724
+ # @param authorization_rule_name [String] The authorization rule name.
703
725
  # @param [Hash{String => String}] A hash of custom headers that will be added
704
726
  # to the HTTP request.
705
727
  #
@@ -774,7 +796,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
774
796
  # Azure subscription.
775
797
  # @param namespace_name [String] The namespace name
776
798
  # @param topic_name [String] The topic name.
777
- # @param authorization_rule_name [String] The authorizationrule name.
799
+ # @param authorization_rule_name [String] The authorization rule name.
778
800
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
779
801
  # will be added to the HTTP request.
780
802
  #
@@ -791,7 +813,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
791
813
  # Azure subscription.
792
814
  # @param namespace_name [String] The namespace name
793
815
  # @param topic_name [String] The topic name.
794
- # @param authorization_rule_name [String] The authorizationrule name.
816
+ # @param authorization_rule_name [String] The authorization rule name.
795
817
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
796
818
  # will be added to the HTTP request.
797
819
  #
@@ -808,7 +830,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
808
830
  # Azure subscription.
809
831
  # @param namespace_name [String] The namespace name
810
832
  # @param topic_name [String] The topic name.
811
- # @param authorization_rule_name [String] The authorizationrule name.
833
+ # @param authorization_rule_name [String] The authorization rule name.
812
834
  # @param [Hash{String => String}] A hash of custom headers that will be added
813
835
  # to the HTTP request.
814
836
  #
@@ -873,7 +895,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
873
895
  # Azure subscription.
874
896
  # @param namespace_name [String] The namespace name
875
897
  # @param topic_name [String] The topic name.
876
- # @param authorization_rule_name [String] The authorizationrule name.
898
+ # @param authorization_rule_name [String] The authorization rule name.
877
899
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
878
900
  # will be added to the HTTP request.
879
901
  #
@@ -891,7 +913,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
891
913
  # Azure subscription.
892
914
  # @param namespace_name [String] The namespace name
893
915
  # @param topic_name [String] The topic name.
894
- # @param authorization_rule_name [String] The authorizationrule name.
916
+ # @param authorization_rule_name [String] The authorization rule name.
895
917
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
896
918
  # will be added to the HTTP request.
897
919
  #
@@ -908,7 +930,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
908
930
  # Azure subscription.
909
931
  # @param namespace_name [String] The namespace name
910
932
  # @param topic_name [String] The topic name.
911
- # @param authorization_rule_name [String] The authorizationrule name.
933
+ # @param authorization_rule_name [String] The authorization rule name.
912
934
  # @param [Hash{String => String}] A hash of custom headers that will be added
913
935
  # to the HTTP request.
914
936
  #
@@ -983,7 +1005,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
983
1005
  # Azure subscription.
984
1006
  # @param namespace_name [String] The namespace name
985
1007
  # @param topic_name [String] The topic name.
986
- # @param authorization_rule_name [String] The authorizationrule name.
1008
+ # @param authorization_rule_name [String] The authorization rule name.
987
1009
  # @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
988
1010
  # regenerate the authorization rule.
989
1011
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1003,7 +1025,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1003
1025
  # Azure subscription.
1004
1026
  # @param namespace_name [String] The namespace name
1005
1027
  # @param topic_name [String] The topic name.
1006
- # @param authorization_rule_name [String] The authorizationrule name.
1028
+ # @param authorization_rule_name [String] The authorization rule name.
1007
1029
  # @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
1008
1030
  # regenerate the authorization rule.
1009
1031
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1022,7 +1044,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1022
1044
  # Azure subscription.
1023
1045
  # @param namespace_name [String] The namespace name
1024
1046
  # @param topic_name [String] The topic name.
1025
- # @param authorization_rule_name [String] The authorizationrule name.
1047
+ # @param authorization_rule_name [String] The authorization rule name.
1026
1048
  # @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
1027
1049
  # regenerate the authorization rule.
1028
1050
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -1282,14 +1304,20 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
1282
1304
  # @param resource_group_name [String] Name of the Resource group within the
1283
1305
  # Azure subscription.
1284
1306
  # @param namespace_name [String] The namespace name
1307
+ # @param skip [Integer] Skip is only used if a previous operation returned a
1308
+ # partial result. If a previous response contains a nextLink element, the value
1309
+ # of the nextLink element will include a skip parameter that specifies a
1310
+ # starting point to use for subsequent calls.
1311
+ # @param top [Integer] May be used to limit the number of results to the most
1312
+ # recent N usageDetails.
1285
1313
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1286
1314
  # will be added to the HTTP request.
1287
1315
  #
1288
1316
  # @return [SBTopicListResult] which provide lazy access to pages of the
1289
1317
  # response.
1290
1318
  #
1291
- def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
1292
- response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
1319
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
1320
+ response = list_by_namespace_async(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers).value!
1293
1321
  unless response.nil?
1294
1322
  page = response.body
1295
1323
  page.next_method = Proc.new do |next_page_link|
@@ -0,0 +1,53 @@
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 '2018-01-01-preview/generated/azure_mgmt_service_bus/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ServiceBus::Mgmt::V2018_01_01_preview
23
+ autoload :Operations, '2018-01-01-preview/generated/azure_mgmt_service_bus/operations.rb'
24
+ autoload :Namespaces, '2018-01-01-preview/generated/azure_mgmt_service_bus/namespaces.rb'
25
+ autoload :ServiceBusManagementClient, '2018-01-01-preview/generated/azure_mgmt_service_bus/service_bus_management_client.rb'
26
+
27
+ module Models
28
+ autoload :OperationListResult, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation_list_result.rb'
29
+ autoload :ErrorResponse, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/error_response.rb'
30
+ autoload :Resource, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/resource.rb'
31
+ autoload :OperationDisplay, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation_display.rb'
32
+ autoload :Operation, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation.rb'
33
+ autoload :NWRuleSetIpRules, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/nwrule_set_ip_rules.rb'
34
+ autoload :VirtualNetworkRuleListResult, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/virtual_network_rule_list_result.rb'
35
+ autoload :Subnet, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/subnet.rb'
36
+ autoload :NWRuleSetVirtualNetworkRules, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/nwrule_set_virtual_network_rules.rb'
37
+ autoload :SBNamespaceListResult, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb'
38
+ autoload :SBSku, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbsku.rb'
39
+ autoload :IpFilterRuleListResult, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/ip_filter_rule_list_result.rb'
40
+ autoload :TrackedResource, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/tracked_resource.rb'
41
+ autoload :ResourceNamespacePatch, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb'
42
+ autoload :SBNamespace, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace.rb'
43
+ autoload :SBNamespaceUpdateParameters, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb'
44
+ autoload :IpFilterRule, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/ip_filter_rule.rb'
45
+ autoload :VirtualNetworkRule, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/virtual_network_rule.rb'
46
+ autoload :NetworkRuleSet, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/network_rule_set.rb'
47
+ autoload :SkuName, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/sku_name.rb'
48
+ autoload :SkuTier, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/sku_tier.rb'
49
+ autoload :IPAction, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/ipaction.rb'
50
+ autoload :NetworkRuleIPAction, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/network_rule_ipaction.rb'
51
+ autoload :DefaultAction, '2018-01-01-preview/generated/azure_mgmt_service_bus/models/default_action.rb'
52
+ end
53
+ end
@@ -0,0 +1,16 @@
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::ServiceBus::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for DefaultAction
10
+ #
11
+ module DefaultAction
12
+ Allow = "Allow"
13
+ Deny = "Deny"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,58 @@
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::ServiceBus::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Error response indicates ServiceBus service is not able to process the
10
+ # incoming request. The reason is provided in the error message.
11
+ #
12
+ class ErrorResponse
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Error code.
17
+ attr_accessor :code
18
+
19
+ # @return [String] Error message indicating why the operation failed.
20
+ attr_accessor :message
21
+
22
+
23
+ #
24
+ # Mapper for ErrorResponse class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ErrorResponse',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ErrorResponse',
35
+ model_properties: {
36
+ code: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'code',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ message: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'message',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,96 @@
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::ServiceBus::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Single item in a List or Get IpFilterRules operation
10
+ #
11
+ class IpFilterRule < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] IP Mask
16
+ attr_accessor :ip_mask
17
+
18
+ # @return [IPAction] The IP Filter Action. Possible values include:
19
+ # 'Accept', 'Reject'
20
+ attr_accessor :action
21
+
22
+ # @return [String] IP Filter name
23
+ attr_accessor :filter_name
24
+
25
+
26
+ #
27
+ # Mapper for IpFilterRule class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'IpFilterRule',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'IpFilterRule',
38
+ model_properties: {
39
+ id: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ name: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ ip_mask: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'properties.ipMask',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ action: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'properties.action',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ filter_name: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'properties.filterName',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end