azure_mgmt_service_bus 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_service_bus.rb +67 -0
  3. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/access_rights.rb +1 -1
  4. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/check_name_availability.rb +1 -1
  5. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +70 -0
  6. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/entity_availability_status.rb +19 -0
  7. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/entity_status.rb +5 -5
  8. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/message_count_details.rb +8 -8
  9. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_create_or_update_parameters.rb +151 -0
  10. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +96 -0
  11. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_resource.rb +169 -0
  12. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_state.rb +27 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_update_parameters.rb +62 -0
  14. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/operation.rb +1 -1
  15. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/operation_display.rb +1 -1
  16. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/operation_list_result.rb +1 -1
  17. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/policykey.rb +16 -0
  18. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_create_or_update_parameters.rb +307 -0
  19. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_list_result.rb +95 -0
  20. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_resource.rb +318 -0
  21. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +46 -0
  22. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/resource.rb +77 -0
  23. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/resource_list_keys.rb +88 -0
  24. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
  25. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +98 -0
  26. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_resource.rb +83 -0
  27. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/sku.rb +66 -0
  28. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/sku_name.rb +1 -1
  29. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/sku_tier.rb +1 -1
  30. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +237 -0
  31. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +96 -0
  32. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_resource.rb +248 -0
  33. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +294 -0
  34. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_list_result.rb +95 -0
  35. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_resource.rb +305 -0
  36. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/tracked_resource.rb +82 -0
  37. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/models/unavailable_reason.rb +1 -1
  38. data/lib/2015-08-01/generated/azure_mgmt_service_bus/module_definition.rb +9 -0
  39. data/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +1751 -0
  40. data/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb +213 -0
  41. data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +1267 -0
  42. data/lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +147 -0
  43. data/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb +545 -0
  44. data/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +1267 -0
  45. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_service_bus/version.rb +2 -2
  46. data/lib/2017-04-01/generated/azure_mgmt_service_bus.rb +87 -0
  47. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/disaster_recovery_configs.rb +6 -6
  48. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/event_hubs.rb +3 -3
  49. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/access_keys.rb +1 -1
  50. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/access_rights.rb +17 -0
  51. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/action.rb +1 -1
  52. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/arm_disaster_recovery.rb +1 -1
  53. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/arm_disaster_recovery_list_result.rb +1 -1
  54. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/authorization_rule_properties.rb +1 -1
  55. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/capture_description.rb +1 -1
  56. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +47 -0
  57. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/check_name_availability_result.rb +1 -1
  58. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/correlation_filter.rb +1 -1
  59. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/destination.rb +1 -1
  60. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/encoding_capture_description.rb +1 -1
  61. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/entity_status.rb +23 -0
  62. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/error_response.rb +1 -1
  63. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/event_hub_list_result.rb +1 -1
  64. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/eventhub.rb +1 -1
  65. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/filter_type.rb +1 -1
  66. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/key_type.rb +1 -1
  67. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/message_count_details.rb +91 -0
  68. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation.rb +56 -0
  69. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation_display.rb +68 -0
  70. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +99 -0
  71. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/premium_messaging_regions.rb +1 -1
  72. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb +1 -1
  73. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb +1 -1
  74. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/provisioning_state_dr.rb +1 -1
  75. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb +1 -1
  76. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/resource.rb +1 -1
  77. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/resource_namespace_patch.rb +1 -1
  78. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/role_disaster_recovery.rb +1 -1
  79. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/rule.rb +1 -1
  80. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/rule_list_result.rb +1 -1
  81. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbauthorization_rule.rb +1 -1
  82. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb +1 -1
  83. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbnamespace.rb +1 -1
  84. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbnamespace_list_result.rb +1 -1
  85. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb +1 -1
  86. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbqueue.rb +1 -1
  87. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbqueue_list_result.rb +1 -1
  88. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbsku.rb +1 -1
  89. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbsubscription.rb +1 -1
  90. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbsubscription_list_result.rb +1 -1
  91. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbtopic.rb +1 -1
  92. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sbtopic_list_result.rb +1 -1
  93. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sku_name.rb +17 -0
  94. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sku_tier.rb +17 -0
  95. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sql_filter.rb +1 -1
  96. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/sql_rule_action.rb +1 -1
  97. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/models/tracked_resource.rb +1 -1
  98. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/unavailable_reason.rb +20 -0
  99. data/lib/2017-04-01/generated/azure_mgmt_service_bus/module_definition.rb +9 -0
  100. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/namespaces.rb +23 -23
  101. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/operations.rb +3 -3
  102. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/premium_messaging_regions_operations.rb +3 -3
  103. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/queues.rb +14 -14
  104. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/regions.rb +3 -3
  105. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/rules.rb +6 -6
  106. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/service_bus_management_client.rb +3 -3
  107. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/subscriptions.rb +6 -6
  108. data/lib/{generated → 2017-04-01/generated}/azure_mgmt_service_bus/topics.rb +14 -14
  109. data/lib/{generated/azure_mgmt_service_bus/module_definition.rb → 2017-04-01/generated/azure_mgmt_service_bus/version.rb} +3 -3
  110. data/lib/azure_mgmt_service_bus.rb +3 -1
  111. data/lib/module_definition.rb +7 -0
  112. data/lib/profiles/common/configurable.rb +73 -0
  113. data/lib/profiles/common/default.rb +68 -0
  114. data/lib/profiles/latest/modules/servicebus_profile_module.rb +260 -0
  115. data/lib/profiles/latest/servicebus_latest_profile_client.rb +33 -0
  116. data/lib/profiles/latest/servicebus_module_definition.rb +9 -0
  117. data/lib/version.rb +7 -0
  118. metadata +117 -66
  119. data/lib/generated/azure_mgmt_service_bus.rb +0 -87
@@ -0,0 +1,294 @@
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::V2015_08_01
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Create Or Update Topic operation.
10
+ #
11
+ class TopicCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Topic name.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Location of the resource.
19
+ attr_accessor :location
20
+
21
+ # @return [DateTime] Last time the message was sent, or a request was
22
+ # received, for this topic.
23
+ attr_accessor :accessed_at
24
+
25
+ # @return [String] TimeSpan idle interval after which the topic is
26
+ # automatically deleted. The minimum duration is 5 minutes.
27
+ attr_accessor :auto_delete_on_idle
28
+
29
+ # @return [EntityAvailabilityStatus] Entity availability status for the
30
+ # topic. Possible values include: 'Available', 'Limited', 'Renaming',
31
+ # 'Restoring', 'Unknown'
32
+ attr_accessor :entity_availability_status
33
+
34
+ # @return [DateTime] Exact time the message was created.
35
+ attr_accessor :created_at
36
+
37
+ # @return [MessageCountDetails]
38
+ attr_accessor :count_details
39
+
40
+ # @return [String] Default message time to live value. This is the
41
+ # duration after which the message expires, starting from when the
42
+ # message is sent to Service Bus. This is the default value used when
43
+ # TimeToLive is not set on a message itself.
44
+ attr_accessor :default_message_time_to_live
45
+
46
+ # @return [String] TimeSpan structure that defines the duration of the
47
+ # duplicate detection history. The default value is 10 minutes.
48
+ attr_accessor :duplicate_detection_history_time_window
49
+
50
+ # @return [Boolean] Value that indicates whether server-side batched
51
+ # operations are enabled.
52
+ attr_accessor :enable_batched_operations
53
+
54
+ # @return [Boolean] Value that indicates whether Express Entities are
55
+ # enabled. An express topic holds a message in memory temporarily before
56
+ # writing it to persistent storage.
57
+ attr_accessor :enable_express
58
+
59
+ # @return [Boolean] Value that indicates whether the topic to be
60
+ # partitioned across multiple message brokers is enabled.
61
+ attr_accessor :enable_partitioning
62
+
63
+ # @return [Boolean] Value that indicates whether partitioning is enabled
64
+ # or disabled.
65
+ attr_accessor :enable_subscription_partitioning
66
+
67
+ # @return [Boolean] Whether messages should be filtered before
68
+ # publishing.
69
+ attr_accessor :filtering_messages_before_publishing
70
+
71
+ # @return [Boolean] Value that indicates whether the message is
72
+ # accessible anonymously.
73
+ attr_accessor :is_anonymous_accessible
74
+
75
+ # @return [Boolean]
76
+ attr_accessor :is_express
77
+
78
+ # @return [Integer] Maximum size of the topic in megabytes, which is the
79
+ # size of the memory allocated for the topic.
80
+ attr_accessor :max_size_in_megabytes
81
+
82
+ # @return [Boolean] Value indicating if this topic requires duplicate
83
+ # detection.
84
+ attr_accessor :requires_duplicate_detection
85
+
86
+ # @return [Integer] Size of the topic, in bytes.
87
+ attr_accessor :size_in_bytes
88
+
89
+ # @return [EntityStatus] Enumerates the possible values for the status of
90
+ # a messaging entity. Possible values include: 'Active', 'Creating',
91
+ # 'Deleting', 'Disabled', 'ReceiveDisabled', 'Renaming', 'Restoring',
92
+ # 'SendDisabled', 'Unknown'
93
+ attr_accessor :status
94
+
95
+ # @return [Integer] Number of subscriptions.
96
+ attr_accessor :subscription_count
97
+
98
+ # @return [Boolean] Value that indicates whether the topic supports
99
+ # ordering.
100
+ attr_accessor :support_ordering
101
+
102
+ # @return [DateTime] The exact time the message was updated.
103
+ attr_accessor :updated_at
104
+
105
+
106
+ #
107
+ # Mapper for TopicCreateOrUpdateParameters class as Ruby Hash.
108
+ # This will be used for serialization/deserialization.
109
+ #
110
+ def self.mapper()
111
+ {
112
+ required: false,
113
+ serialized_name: 'TopicCreateOrUpdateParameters',
114
+ type: {
115
+ name: 'Composite',
116
+ class_name: 'TopicCreateOrUpdateParameters',
117
+ model_properties: {
118
+ name: {
119
+ required: false,
120
+ serialized_name: 'name',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ location: {
126
+ required: true,
127
+ serialized_name: 'location',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ accessed_at: {
133
+ required: false,
134
+ read_only: true,
135
+ serialized_name: 'properties.accessedAt',
136
+ type: {
137
+ name: 'DateTime'
138
+ }
139
+ },
140
+ auto_delete_on_idle: {
141
+ required: false,
142
+ serialized_name: 'properties.autoDeleteOnIdle',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ entity_availability_status: {
148
+ required: false,
149
+ serialized_name: 'properties.entityAvailabilityStatus',
150
+ type: {
151
+ name: 'Enum',
152
+ module: 'EntityAvailabilityStatus'
153
+ }
154
+ },
155
+ created_at: {
156
+ required: false,
157
+ read_only: true,
158
+ serialized_name: 'properties.createdAt',
159
+ type: {
160
+ name: 'DateTime'
161
+ }
162
+ },
163
+ count_details: {
164
+ required: false,
165
+ read_only: true,
166
+ serialized_name: 'properties.countDetails',
167
+ type: {
168
+ name: 'Composite',
169
+ class_name: 'MessageCountDetails'
170
+ }
171
+ },
172
+ default_message_time_to_live: {
173
+ required: false,
174
+ serialized_name: 'properties.defaultMessageTimeToLive',
175
+ type: {
176
+ name: 'String'
177
+ }
178
+ },
179
+ duplicate_detection_history_time_window: {
180
+ required: false,
181
+ serialized_name: 'properties.duplicateDetectionHistoryTimeWindow',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
186
+ enable_batched_operations: {
187
+ required: false,
188
+ serialized_name: 'properties.enableBatchedOperations',
189
+ type: {
190
+ name: 'Boolean'
191
+ }
192
+ },
193
+ enable_express: {
194
+ required: false,
195
+ serialized_name: 'properties.enableExpress',
196
+ type: {
197
+ name: 'Boolean'
198
+ }
199
+ },
200
+ enable_partitioning: {
201
+ required: false,
202
+ serialized_name: 'properties.enablePartitioning',
203
+ type: {
204
+ name: 'Boolean'
205
+ }
206
+ },
207
+ enable_subscription_partitioning: {
208
+ required: false,
209
+ serialized_name: 'properties.enableSubscriptionPartitioning',
210
+ type: {
211
+ name: 'Boolean'
212
+ }
213
+ },
214
+ filtering_messages_before_publishing: {
215
+ required: false,
216
+ serialized_name: 'properties.filteringMessagesBeforePublishing',
217
+ type: {
218
+ name: 'Boolean'
219
+ }
220
+ },
221
+ is_anonymous_accessible: {
222
+ required: false,
223
+ serialized_name: 'properties.isAnonymousAccessible',
224
+ type: {
225
+ name: 'Boolean'
226
+ }
227
+ },
228
+ is_express: {
229
+ required: false,
230
+ serialized_name: 'properties.isExpress',
231
+ type: {
232
+ name: 'Boolean'
233
+ }
234
+ },
235
+ max_size_in_megabytes: {
236
+ required: false,
237
+ serialized_name: 'properties.maxSizeInMegabytes',
238
+ type: {
239
+ name: 'Number'
240
+ }
241
+ },
242
+ requires_duplicate_detection: {
243
+ required: false,
244
+ serialized_name: 'properties.requiresDuplicateDetection',
245
+ type: {
246
+ name: 'Boolean'
247
+ }
248
+ },
249
+ size_in_bytes: {
250
+ required: false,
251
+ read_only: true,
252
+ serialized_name: 'properties.sizeInBytes',
253
+ type: {
254
+ name: 'Number'
255
+ }
256
+ },
257
+ status: {
258
+ required: false,
259
+ serialized_name: 'properties.status',
260
+ type: {
261
+ name: 'Enum',
262
+ module: 'EntityStatus'
263
+ }
264
+ },
265
+ subscription_count: {
266
+ required: false,
267
+ read_only: true,
268
+ serialized_name: 'properties.subscriptionCount',
269
+ type: {
270
+ name: 'Number'
271
+ }
272
+ },
273
+ support_ordering: {
274
+ required: false,
275
+ serialized_name: 'properties.supportOrdering',
276
+ type: {
277
+ name: 'Boolean'
278
+ }
279
+ },
280
+ updated_at: {
281
+ required: false,
282
+ read_only: true,
283
+ serialized_name: 'properties.updatedAt',
284
+ type: {
285
+ name: 'DateTime'
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+ end
292
+ end
293
+ end
294
+ end
@@ -0,0 +1,95 @@
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::V2015_08_01
7
+ module Models
8
+ #
9
+ # The response to the List Topics operation.
10
+ #
11
+ class TopicListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<TopicResource>] Result of the List Topics operation.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link to the next set of results. Not empty if Value
20
+ # contains incomplete list of topics.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<TopicResource>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [TopicListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for TopicListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'TopicListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'TopicListResult',
66
+ model_properties: {
67
+ value: {
68
+ required: false,
69
+ serialized_name: 'value',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'TopicResourceElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'TopicResource'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,305 @@
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::V2015_08_01
7
+ module Models
8
+ #
9
+ # Description of topic resource.
10
+ #
11
+ class TopicResource < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] Last time the message was sent, or a request was
16
+ # received, for this topic.
17
+ attr_accessor :accessed_at
18
+
19
+ # @return [String] TimeSpan idle interval after which the topic is
20
+ # automatically deleted. The minimum duration is 5 minutes.
21
+ attr_accessor :auto_delete_on_idle
22
+
23
+ # @return [EntityAvailabilityStatus] Entity availability status for the
24
+ # topic. Possible values include: 'Available', 'Limited', 'Renaming',
25
+ # 'Restoring', 'Unknown'
26
+ attr_accessor :entity_availability_status
27
+
28
+ # @return [DateTime] Exact time the message was created.
29
+ attr_accessor :created_at
30
+
31
+ # @return [MessageCountDetails]
32
+ attr_accessor :count_details
33
+
34
+ # @return [String] Default message time to live value. This is the
35
+ # duration after which the message expires, starting from when the
36
+ # message is sent to Service Bus. This is the default value used when
37
+ # TimeToLive is not set on a message itself.
38
+ attr_accessor :default_message_time_to_live
39
+
40
+ # @return [String] TimeSpan structure that defines the duration of the
41
+ # duplicate detection history. The default value is 10 minutes.
42
+ attr_accessor :duplicate_detection_history_time_window
43
+
44
+ # @return [Boolean] Value that indicates whether server-side batched
45
+ # operations are enabled.
46
+ attr_accessor :enable_batched_operations
47
+
48
+ # @return [Boolean] Value that indicates whether Express Entities are
49
+ # enabled. An express topic holds a message in memory temporarily before
50
+ # writing it to persistent storage.
51
+ attr_accessor :enable_express
52
+
53
+ # @return [Boolean] Value that indicates whether the topic to be
54
+ # partitioned across multiple message brokers is enabled.
55
+ attr_accessor :enable_partitioning
56
+
57
+ # @return [Boolean] Value that indicates whether partitioning is enabled
58
+ # or disabled.
59
+ attr_accessor :enable_subscription_partitioning
60
+
61
+ # @return [Boolean] Whether messages should be filtered before
62
+ # publishing.
63
+ attr_accessor :filtering_messages_before_publishing
64
+
65
+ # @return [Boolean] Value that indicates whether the message is
66
+ # accessible anonymously.
67
+ attr_accessor :is_anonymous_accessible
68
+
69
+ # @return [Boolean]
70
+ attr_accessor :is_express
71
+
72
+ # @return [Integer] Maximum size of the topic in megabytes, which is the
73
+ # size of the memory allocated for the topic.
74
+ attr_accessor :max_size_in_megabytes
75
+
76
+ # @return [Boolean] Value indicating if this topic requires duplicate
77
+ # detection.
78
+ attr_accessor :requires_duplicate_detection
79
+
80
+ # @return [Integer] Size of the topic, in bytes.
81
+ attr_accessor :size_in_bytes
82
+
83
+ # @return [EntityStatus] Enumerates the possible values for the status of
84
+ # a messaging entity. Possible values include: 'Active', 'Creating',
85
+ # 'Deleting', 'Disabled', 'ReceiveDisabled', 'Renaming', 'Restoring',
86
+ # 'SendDisabled', 'Unknown'
87
+ attr_accessor :status
88
+
89
+ # @return [Integer] Number of subscriptions.
90
+ attr_accessor :subscription_count
91
+
92
+ # @return [Boolean] Value that indicates whether the topic supports
93
+ # ordering.
94
+ attr_accessor :support_ordering
95
+
96
+ # @return [DateTime] The exact time the message was updated.
97
+ attr_accessor :updated_at
98
+
99
+
100
+ #
101
+ # Mapper for TopicResource class as Ruby Hash.
102
+ # This will be used for serialization/deserialization.
103
+ #
104
+ def self.mapper()
105
+ {
106
+ required: false,
107
+ serialized_name: 'TopicResource',
108
+ type: {
109
+ name: 'Composite',
110
+ class_name: 'TopicResource',
111
+ model_properties: {
112
+ id: {
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'id',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ name: {
121
+ required: false,
122
+ read_only: true,
123
+ serialized_name: 'name',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ },
128
+ location: {
129
+ required: false,
130
+ serialized_name: 'location',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ type: {
136
+ required: false,
137
+ read_only: true,
138
+ serialized_name: 'type',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ },
143
+ accessed_at: {
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'properties.accessedAt',
147
+ type: {
148
+ name: 'DateTime'
149
+ }
150
+ },
151
+ auto_delete_on_idle: {
152
+ required: false,
153
+ serialized_name: 'properties.autoDeleteOnIdle',
154
+ type: {
155
+ name: 'String'
156
+ }
157
+ },
158
+ entity_availability_status: {
159
+ required: false,
160
+ serialized_name: 'properties.entityAvailabilityStatus',
161
+ type: {
162
+ name: 'Enum',
163
+ module: 'EntityAvailabilityStatus'
164
+ }
165
+ },
166
+ created_at: {
167
+ required: false,
168
+ read_only: true,
169
+ serialized_name: 'properties.createdAt',
170
+ type: {
171
+ name: 'DateTime'
172
+ }
173
+ },
174
+ count_details: {
175
+ required: false,
176
+ read_only: true,
177
+ serialized_name: 'properties.countDetails',
178
+ type: {
179
+ name: 'Composite',
180
+ class_name: 'MessageCountDetails'
181
+ }
182
+ },
183
+ default_message_time_to_live: {
184
+ required: false,
185
+ serialized_name: 'properties.defaultMessageTimeToLive',
186
+ type: {
187
+ name: 'String'
188
+ }
189
+ },
190
+ duplicate_detection_history_time_window: {
191
+ required: false,
192
+ serialized_name: 'properties.duplicateDetectionHistoryTimeWindow',
193
+ type: {
194
+ name: 'String'
195
+ }
196
+ },
197
+ enable_batched_operations: {
198
+ required: false,
199
+ serialized_name: 'properties.enableBatchedOperations',
200
+ type: {
201
+ name: 'Boolean'
202
+ }
203
+ },
204
+ enable_express: {
205
+ required: false,
206
+ serialized_name: 'properties.enableExpress',
207
+ type: {
208
+ name: 'Boolean'
209
+ }
210
+ },
211
+ enable_partitioning: {
212
+ required: false,
213
+ serialized_name: 'properties.enablePartitioning',
214
+ type: {
215
+ name: 'Boolean'
216
+ }
217
+ },
218
+ enable_subscription_partitioning: {
219
+ required: false,
220
+ serialized_name: 'properties.enableSubscriptionPartitioning',
221
+ type: {
222
+ name: 'Boolean'
223
+ }
224
+ },
225
+ filtering_messages_before_publishing: {
226
+ required: false,
227
+ serialized_name: 'properties.filteringMessagesBeforePublishing',
228
+ type: {
229
+ name: 'Boolean'
230
+ }
231
+ },
232
+ is_anonymous_accessible: {
233
+ required: false,
234
+ serialized_name: 'properties.isAnonymousAccessible',
235
+ type: {
236
+ name: 'Boolean'
237
+ }
238
+ },
239
+ is_express: {
240
+ required: false,
241
+ serialized_name: 'properties.isExpress',
242
+ type: {
243
+ name: 'Boolean'
244
+ }
245
+ },
246
+ max_size_in_megabytes: {
247
+ required: false,
248
+ serialized_name: 'properties.maxSizeInMegabytes',
249
+ type: {
250
+ name: 'Number'
251
+ }
252
+ },
253
+ requires_duplicate_detection: {
254
+ required: false,
255
+ serialized_name: 'properties.requiresDuplicateDetection',
256
+ type: {
257
+ name: 'Boolean'
258
+ }
259
+ },
260
+ size_in_bytes: {
261
+ required: false,
262
+ read_only: true,
263
+ serialized_name: 'properties.sizeInBytes',
264
+ type: {
265
+ name: 'Number'
266
+ }
267
+ },
268
+ status: {
269
+ required: false,
270
+ serialized_name: 'properties.status',
271
+ type: {
272
+ name: 'Enum',
273
+ module: 'EntityStatus'
274
+ }
275
+ },
276
+ subscription_count: {
277
+ required: false,
278
+ read_only: true,
279
+ serialized_name: 'properties.subscriptionCount',
280
+ type: {
281
+ name: 'Number'
282
+ }
283
+ },
284
+ support_ordering: {
285
+ required: false,
286
+ serialized_name: 'properties.supportOrdering',
287
+ type: {
288
+ name: 'Boolean'
289
+ }
290
+ },
291
+ updated_at: {
292
+ required: false,
293
+ read_only: true,
294
+ serialized_name: 'properties.updatedAt',
295
+ type: {
296
+ name: 'DateTime'
297
+ }
298
+ }
299
+ }
300
+ }
301
+ }
302
+ end
303
+ end
304
+ end
305
+ end