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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 09b9aa7917a86850641b0088011488e77e12ed57
4
- data.tar.gz: 1a655b34881445d1b5597a7cd7054b96101483b4
2
+ SHA256:
3
+ metadata.gz: 3a0a73c6c57805957be72897c245d454a018bbe15b09faaee7010f6d7dcd84c0
4
+ data.tar.gz: '04848468d28ba937613207aaad12f286ec5c125fc171d96f13ffd901080ccdf6'
5
5
  SHA512:
6
- metadata.gz: ad2614788cf591e626cb6e55aa04454da7b2475d564cf62ce33d7aa214806d4c4c54369acf23448de8d907db920d6312bdd8d416a6823c5a592577e2f8f314cd
7
- data.tar.gz: d3032d491f9c6aafe58a0a280165aa3f5f7be6549821045129e018979e544687ec6336337f891b807c68f7ec46243e139a8249a3de6ea3e4daefbb860fe30e2f
6
+ metadata.gz: 501aab0bb917c15a48e89b4869503bb462028aec7e1704cdf191e3c44ece3c52bcb1781152e52f7dbc9ed3de3a87b0b44a2129f5658e445a27acc97de3f5661c
7
+ data.tar.gz: cfa45a675657f9e3729ccdc8ae388a4cdf979ab40cd826dc3ffc90dbbb37ebe08664343043de3fe6824e3d966a7b6559527ebb0391b587a605fdd20663b5169b
@@ -12,7 +12,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The Name to check the namespce name availability and
15
+ # @return [String] The Name to check the namespace name availability and
16
16
  # The namespace name can contain only letters, numbers, and hyphens. The
17
17
  # namespace must start with a letter, and it must end with a letter or
18
18
  # number.
@@ -32,7 +32,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -33,7 +33,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
33
33
  def get_all_items
34
34
  items = @value
35
35
  page = self
36
- while page.next_link != nil do
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
37
  page = page.get_next_page
38
38
  items.concat(page.value)
39
39
  end
@@ -31,7 +31,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -25,6 +25,15 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
25
25
  attr_accessor :type
26
26
 
27
27
 
28
+ # @return [String] the name of the resource group of the resource.
29
+ def resource_group
30
+ unless self.id.nil?
31
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
32
+ groups.captures[0].strip if groups
33
+ end
34
+ end
35
+
36
+
28
37
  #
29
38
  # Mapper for Resource class as Ruby Hash.
30
39
  # This will be used for serialization/deserialization.
@@ -33,7 +33,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
33
33
  def get_all_items
34
34
  items = @value
35
35
  page = self
36
- while page.next_link != nil do
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
37
  page = page.get_next_page
38
38
  items.concat(page.value)
39
39
  end
@@ -32,7 +32,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -60,10 +60,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
60
60
  # partitioned across multiple message brokers is enabled.
61
61
  attr_accessor :enable_partitioning
62
62
 
63
- # @return [Boolean] Value that indicates whether partitioning is enabled
64
- # or disabled. NOTE: This property is unsupported, and may be deprecated.
65
- attr_accessor :enable_subscription_partitioning
66
-
67
63
  # @return [Boolean] Whether messages should be filtered before
68
64
  # publishing.
69
65
  attr_accessor :filtering_messages_before_publishing
@@ -217,14 +213,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
217
213
  name: 'Boolean'
218
214
  }
219
215
  },
220
- enable_subscription_partitioning: {
221
- client_side_validation: true,
222
- required: false,
223
- serialized_name: 'properties.enableSubscriptionPartitioning',
224
- type: {
225
- name: 'Boolean'
226
- }
227
- },
228
216
  filtering_messages_before_publishing: {
229
217
  client_side_validation: true,
230
218
  required: false,
@@ -31,7 +31,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -54,10 +54,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
54
54
  # partitioned across multiple message brokers is enabled.
55
55
  attr_accessor :enable_partitioning
56
56
 
57
- # @return [Boolean] Value that indicates whether partitioning is enabled
58
- # or disabled. NOTE: This property is unsupported, and may be deprecated.
59
- attr_accessor :enable_subscription_partitioning
60
-
61
57
  # @return [Boolean] Whether messages should be filtered before
62
58
  # publishing.
63
59
  attr_accessor :filtering_messages_before_publishing
@@ -230,14 +226,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
230
226
  name: 'Boolean'
231
227
  }
232
228
  },
233
- enable_subscription_partitioning: {
234
- client_side_validation: true,
235
- required: false,
236
- serialized_name: 'properties.enableSubscriptionPartitioning',
237
- type: {
238
- name: 'Boolean'
239
- }
240
- },
241
229
  filtering_messages_before_publishing: {
242
230
  client_side_validation: true,
243
231
  required: false,
@@ -719,7 +719,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
719
719
  # @param resource_group_name [String] Name of the Resource group within the
720
720
  # Azure subscription.
721
721
  # @param namespace_name [String] The namespace name
722
- # @param authorization_rule_name [String] The authorizationrule name.
722
+ # @param authorization_rule_name [String] The authorization rule name.
723
723
  # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
724
724
  # shared access authorization rule.
725
725
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -738,7 +738,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
738
738
  # @param resource_group_name [String] Name of the Resource group within the
739
739
  # Azure subscription.
740
740
  # @param namespace_name [String] The namespace name
741
- # @param authorization_rule_name [String] The authorizationrule name.
741
+ # @param authorization_rule_name [String] The authorization rule name.
742
742
  # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
743
743
  # shared access authorization rule.
744
744
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -756,7 +756,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
756
756
  # @param resource_group_name [String] Name of the Resource group within the
757
757
  # Azure subscription.
758
758
  # @param namespace_name [String] The namespace name
759
- # @param authorization_rule_name [String] The authorizationrule name.
759
+ # @param authorization_rule_name [String] The authorization rule name.
760
760
  # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
761
761
  # shared access authorization rule.
762
762
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -838,7 +838,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
838
838
  # @param resource_group_name [String] Name of the Resource group within the
839
839
  # Azure subscription.
840
840
  # @param namespace_name [String] The namespace name
841
- # @param authorization_rule_name [String] The authorizationrule name.
841
+ # @param authorization_rule_name [String] The authorization rule name.
842
842
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
843
843
  # will be added to the HTTP request.
844
844
  #
@@ -854,7 +854,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
854
854
  # @param resource_group_name [String] Name of the Resource group within the
855
855
  # Azure subscription.
856
856
  # @param namespace_name [String] The namespace name
857
- # @param authorization_rule_name [String] The authorizationrule name.
857
+ # @param authorization_rule_name [String] The authorization rule name.
858
858
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
859
859
  # will be added to the HTTP request.
860
860
  #
@@ -870,7 +870,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
870
870
  # @param resource_group_name [String] Name of the Resource group within the
871
871
  # Azure subscription.
872
872
  # @param namespace_name [String] The namespace name
873
- # @param authorization_rule_name [String] The authorizationrule name.
873
+ # @param authorization_rule_name [String] The authorization rule name.
874
874
  # @param [Hash{String => String}] A hash of custom headers that will be added
875
875
  # to the HTTP request.
876
876
  #
@@ -932,7 +932,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
932
932
  # @param resource_group_name [String] Name of the Resource group within the
933
933
  # Azure subscription.
934
934
  # @param namespace_name [String] The namespace name
935
- # @param authorization_rule_name [String] The authorizationrule name.
935
+ # @param authorization_rule_name [String] The authorization rule name.
936
936
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
937
937
  # will be added to the HTTP request.
938
938
  #
@@ -949,7 +949,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
949
949
  # @param resource_group_name [String] Name of the Resource group within the
950
950
  # Azure subscription.
951
951
  # @param namespace_name [String] The namespace name
952
- # @param authorization_rule_name [String] The authorizationrule name.
952
+ # @param authorization_rule_name [String] The authorization rule name.
953
953
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
954
954
  # will be added to the HTTP request.
955
955
  #
@@ -965,7 +965,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
965
965
  # @param resource_group_name [String] Name of the Resource group within the
966
966
  # Azure subscription.
967
967
  # @param namespace_name [String] The namespace name
968
- # @param authorization_rule_name [String] The authorizationrule name.
968
+ # @param authorization_rule_name [String] The authorization rule name.
969
969
  # @param [Hash{String => String}] A hash of custom headers that will be added
970
970
  # to the HTTP request.
971
971
  #
@@ -1037,7 +1037,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1037
1037
  # @param resource_group_name [String] Name of the Resource group within the
1038
1038
  # Azure subscription.
1039
1039
  # @param namespace_name [String] The namespace name
1040
- # @param authorization_rule_name [String] The authorizationrule name.
1040
+ # @param authorization_rule_name [String] The authorization rule name.
1041
1041
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1042
1042
  # will be added to the HTTP request.
1043
1043
  #
@@ -1054,7 +1054,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1054
1054
  # @param resource_group_name [String] Name of the Resource group within the
1055
1055
  # Azure subscription.
1056
1056
  # @param namespace_name [String] The namespace name
1057
- # @param authorization_rule_name [String] The authorizationrule name.
1057
+ # @param authorization_rule_name [String] The authorization rule name.
1058
1058
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1059
1059
  # will be added to the HTTP request.
1060
1060
  #
@@ -1070,7 +1070,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1070
1070
  # @param resource_group_name [String] Name of the Resource group within the
1071
1071
  # Azure subscription.
1072
1072
  # @param namespace_name [String] The namespace name
1073
- # @param authorization_rule_name [String] The authorizationrule name.
1073
+ # @param authorization_rule_name [String] The authorization rule name.
1074
1074
  # @param [Hash{String => String}] A hash of custom headers that will be added
1075
1075
  # to the HTTP request.
1076
1076
  #
@@ -1142,7 +1142,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1142
1142
  # @param resource_group_name [String] Name of the Resource group within the
1143
1143
  # Azure subscription.
1144
1144
  # @param namespace_name [String] The namespace name
1145
- # @param authorization_rule_name [String] The authorizationrule name.
1145
+ # @param authorization_rule_name [String] The authorization rule name.
1146
1146
  # @param parameters [RegenerateKeysParameters] Parameters supplied to
1147
1147
  # regenerate the authorization rule.
1148
1148
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1161,7 +1161,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1161
1161
  # @param resource_group_name [String] Name of the Resource group within the
1162
1162
  # Azure subscription.
1163
1163
  # @param namespace_name [String] The namespace name
1164
- # @param authorization_rule_name [String] The authorizationrule name.
1164
+ # @param authorization_rule_name [String] The authorization rule name.
1165
1165
  # @param parameters [RegenerateKeysParameters] Parameters supplied to
1166
1166
  # regenerate the authorization rule.
1167
1167
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1179,7 +1179,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1179
1179
  # @param resource_group_name [String] Name of the Resource group within the
1180
1180
  # Azure subscription.
1181
1181
  # @param namespace_name [String] The namespace name
1182
- # @param authorization_rule_name [String] The authorizationrule name.
1182
+ # @param authorization_rule_name [String] The authorization rule name.
1183
1183
  # @param parameters [RegenerateKeysParameters] Parameters supplied to
1184
1184
  # regenerate the authorization rule.
1185
1185
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -550,7 +550,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
550
550
  # Azure subscription.
551
551
  # @param namespace_name [String] The namespace name
552
552
  # @param queue_name [String] The queue name.
553
- # @param authorization_rule_name [String] The authorizationrule name.
553
+ # @param authorization_rule_name [String] The authorization rule name.
554
554
  # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
555
555
  # shared access authorization rule.
556
556
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -570,7 +570,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
570
570
  # Azure subscription.
571
571
  # @param namespace_name [String] The namespace name
572
572
  # @param queue_name [String] The queue name.
573
- # @param authorization_rule_name [String] The authorizationrule name.
573
+ # @param authorization_rule_name [String] The authorization rule name.
574
574
  # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
575
575
  # shared access authorization rule.
576
576
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -589,7 +589,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
589
589
  # Azure subscription.
590
590
  # @param namespace_name [String] The namespace name
591
591
  # @param queue_name [String] The queue name.
592
- # @param authorization_rule_name [String] The authorizationrule name.
592
+ # @param authorization_rule_name [String] The authorization rule name.
593
593
  # @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters] The
594
594
  # shared access authorization rule.
595
595
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -668,6 +668,117 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
668
668
  promise.execute
669
669
  end
670
670
 
671
+ #
672
+ # Gets an authorization rule for a queue by rule name.
673
+ #
674
+ # @param resource_group_name [String] Name of the Resource group within the
675
+ # Azure subscription.
676
+ # @param namespace_name [String] The namespace name
677
+ # @param queue_name [String] The queue name.
678
+ # @param authorization_rule_name [String] The authorization rule name.
679
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
680
+ # will be added to the HTTP request.
681
+ #
682
+ # @return [SharedAccessAuthorizationRuleResource] operation results.
683
+ #
684
+ def post_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
685
+ response = post_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
686
+ response.body unless response.nil?
687
+ end
688
+
689
+ #
690
+ # Gets an authorization rule for a queue by rule name.
691
+ #
692
+ # @param resource_group_name [String] Name of the Resource group within the
693
+ # Azure subscription.
694
+ # @param namespace_name [String] The namespace name
695
+ # @param queue_name [String] The queue name.
696
+ # @param authorization_rule_name [String] The authorization rule name.
697
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
698
+ # will be added to the HTTP request.
699
+ #
700
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
701
+ #
702
+ def post_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
703
+ post_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value!
704
+ end
705
+
706
+ #
707
+ # Gets an authorization rule for a queue by rule name.
708
+ #
709
+ # @param resource_group_name [String] Name of the Resource group within the
710
+ # Azure subscription.
711
+ # @param namespace_name [String] The namespace name
712
+ # @param queue_name [String] The queue name.
713
+ # @param authorization_rule_name [String] The authorization rule name.
714
+ # @param [Hash{String => String}] A hash of custom headers that will be added
715
+ # to the HTTP request.
716
+ #
717
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
718
+ #
719
+ def post_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil)
720
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
721
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
722
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
723
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
724
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
725
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
726
+ fail ArgumentError, 'queue_name is nil' if queue_name.nil?
727
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
728
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
729
+ fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
730
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
731
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
732
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
733
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
734
+
735
+
736
+ request_headers = {}
737
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
738
+
739
+ # Set Headers
740
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
741
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
742
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}'
743
+
744
+ request_url = @base_url || @client.base_url
745
+
746
+ options = {
747
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
748
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'queueName' => queue_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
749
+ query_params: {'api-version' => @client.api_version},
750
+ headers: request_headers.merge(custom_headers || {}),
751
+ base_url: request_url
752
+ }
753
+ promise = @client.make_request_async(:post, path_template, options)
754
+
755
+ promise = promise.then do |result|
756
+ http_response = result.response
757
+ status_code = http_response.status
758
+ response_content = http_response.body
759
+ unless status_code == 200
760
+ error_model = JSON.load(response_content)
761
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
762
+ end
763
+
764
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
765
+ # Deserialize Response
766
+ if status_code == 200
767
+ begin
768
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
769
+ result_mapper = Azure::ServiceBus::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleResource.mapper()
770
+ result.body = @client.deserialize(result_mapper, parsed_response)
771
+ rescue Exception => e
772
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
773
+ end
774
+ end
775
+
776
+ result
777
+ end
778
+
779
+ promise.execute
780
+ end
781
+
671
782
  #
672
783
  # Deletes a queue authorization rule.
673
784
  #
@@ -675,7 +786,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
675
786
  # Azure subscription.
676
787
  # @param namespace_name [String] The namespace name
677
788
  # @param queue_name [String] The queue name.
678
- # @param authorization_rule_name [String] The authorizationrule name.
789
+ # @param authorization_rule_name [String] The authorization rule name.
679
790
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
680
791
  # will be added to the HTTP request.
681
792
  #
@@ -692,7 +803,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
692
803
  # Azure subscription.
693
804
  # @param namespace_name [String] The namespace name
694
805
  # @param queue_name [String] The queue name.
695
- # @param authorization_rule_name [String] The authorizationrule name.
806
+ # @param authorization_rule_name [String] The authorization rule name.
696
807
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
697
808
  # will be added to the HTTP request.
698
809
  #
@@ -709,7 +820,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
709
820
  # Azure subscription.
710
821
  # @param namespace_name [String] The namespace name
711
822
  # @param queue_name [String] The queue name.
712
- # @param authorization_rule_name [String] The authorizationrule name.
823
+ # @param authorization_rule_name [String] The authorization rule name.
713
824
  # @param [Hash{String => String}] A hash of custom headers that will be added
714
825
  # to the HTTP request.
715
826
  #
@@ -775,7 +886,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
775
886
  # Azure subscription.
776
887
  # @param namespace_name [String] The namespace name
777
888
  # @param queue_name [String] The queue name.
778
- # @param authorization_rule_name [String] The authorizationrule name.
889
+ # @param authorization_rule_name [String] The authorization rule name.
779
890
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
780
891
  # will be added to the HTTP request.
781
892
  #
@@ -793,7 +904,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
793
904
  # Azure subscription.
794
905
  # @param namespace_name [String] The namespace name
795
906
  # @param queue_name [String] The queue name.
796
- # @param authorization_rule_name [String] The authorizationrule name.
907
+ # @param authorization_rule_name [String] The authorization rule name.
797
908
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
798
909
  # will be added to the HTTP request.
799
910
  #
@@ -810,7 +921,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
810
921
  # Azure subscription.
811
922
  # @param namespace_name [String] The namespace name
812
923
  # @param queue_name [String] The queue name.
813
- # @param authorization_rule_name [String] The authorizationrule name.
924
+ # @param authorization_rule_name [String] The authorization rule name.
814
925
  # @param [Hash{String => String}] A hash of custom headers that will be added
815
926
  # to the HTTP request.
816
927
  #
@@ -886,7 +997,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
886
997
  # Azure subscription.
887
998
  # @param namespace_name [String] The namespace name
888
999
  # @param queue_name [String] The queue name.
889
- # @param authorization_rule_name [String] The authorizationrule name.
1000
+ # @param authorization_rule_name [String] The authorization rule name.
890
1001
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
891
1002
  # will be added to the HTTP request.
892
1003
  #
@@ -904,7 +1015,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
904
1015
  # Azure subscription.
905
1016
  # @param namespace_name [String] The namespace name
906
1017
  # @param queue_name [String] The queue name.
907
- # @param authorization_rule_name [String] The authorizationrule name.
1018
+ # @param authorization_rule_name [String] The authorization rule name.
908
1019
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
909
1020
  # will be added to the HTTP request.
910
1021
  #
@@ -921,7 +1032,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
921
1032
  # Azure subscription.
922
1033
  # @param namespace_name [String] The namespace name
923
1034
  # @param queue_name [String] The queue name.
924
- # @param authorization_rule_name [String] The authorizationrule name.
1035
+ # @param authorization_rule_name [String] The authorization rule name.
925
1036
  # @param [Hash{String => String}] A hash of custom headers that will be added
926
1037
  # to the HTTP request.
927
1038
  #
@@ -997,7 +1108,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
997
1108
  # Azure subscription.
998
1109
  # @param namespace_name [String] The namespace name
999
1110
  # @param queue_name [String] The queue name.
1000
- # @param authorization_rule_name [String] The authorizationrule name.
1111
+ # @param authorization_rule_name [String] The authorization rule name.
1001
1112
  # @param parameters [RegenerateKeysParameters] Parameters supplied to
1002
1113
  # regenerate the authorization rule.
1003
1114
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1017,7 +1128,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1017
1128
  # Azure subscription.
1018
1129
  # @param namespace_name [String] The namespace name
1019
1130
  # @param queue_name [String] The queue name.
1020
- # @param authorization_rule_name [String] The authorizationrule name.
1131
+ # @param authorization_rule_name [String] The authorization rule name.
1021
1132
  # @param parameters [RegenerateKeysParameters] Parameters supplied to
1022
1133
  # regenerate the authorization rule.
1023
1134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1036,7 +1147,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1036
1147
  # Azure subscription.
1037
1148
  # @param namespace_name [String] The namespace name
1038
1149
  # @param queue_name [String] The queue name.
1039
- # @param authorization_rule_name [String] The authorizationrule name.
1150
+ # @param authorization_rule_name [String] The authorization rule name.
1040
1151
  # @param parameters [RegenerateKeysParameters] Parameters supplied to
1041
1152
  # regenerate the authorization rule.
1042
1153
  # @param [Hash{String => String}] A hash of custom headers that will be added