azure_mgmt_service_bus 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_service_bus.rb +5 -0
  4. data/lib/generated/azure_mgmt_service_bus.rb +57 -0
  5. data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +17 -0
  6. data/lib/generated/azure_mgmt_service_bus/models/entity_availability_status.rb +19 -0
  7. data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +23 -0
  8. data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +86 -0
  9. data/lib/generated/azure_mgmt_service_bus/models/namespace_create_or_update_parameters.rb +147 -0
  10. data/lib/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +95 -0
  11. data/lib/generated/azure_mgmt_service_bus/models/namespace_resource.rb +165 -0
  12. data/lib/generated/azure_mgmt_service_bus/models/namespace_state.rb +27 -0
  13. data/lib/generated/azure_mgmt_service_bus/models/policykey.rb +16 -0
  14. data/lib/generated/azure_mgmt_service_bus/models/queue_create_or_update_parameters.rb +301 -0
  15. data/lib/generated/azure_mgmt_service_bus/models/queue_list_result.rb +94 -0
  16. data/lib/generated/azure_mgmt_service_bus/models/queue_resource.rb +326 -0
  17. data/lib/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +46 -0
  18. data/lib/generated/azure_mgmt_service_bus/models/resource_list_keys.rb +88 -0
  19. data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
  20. data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +97 -0
  21. data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_resource.rb +97 -0
  22. data/lib/generated/azure_mgmt_service_bus/models/sku.rb +66 -0
  23. data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +17 -0
  24. data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +17 -0
  25. data/lib/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +232 -0
  26. data/lib/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +95 -0
  27. data/lib/generated/azure_mgmt_service_bus/models/subscription_resource.rb +257 -0
  28. data/lib/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +288 -0
  29. data/lib/generated/azure_mgmt_service_bus/models/topic_list_result.rb +94 -0
  30. data/lib/generated/azure_mgmt_service_bus/models/topic_resource.rb +313 -0
  31. data/lib/generated/azure_mgmt_service_bus/module_definition.rb +8 -0
  32. data/lib/generated/azure_mgmt_service_bus/namespaces.rb +1494 -0
  33. data/lib/generated/azure_mgmt_service_bus/queues.rb +1236 -0
  34. data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +144 -0
  35. data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +533 -0
  36. data/lib/generated/azure_mgmt_service_bus/topics.rb +1236 -0
  37. data/lib/generated/azure_mgmt_service_bus/version.rb +8 -0
  38. metadata +150 -0
@@ -0,0 +1,232 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::ServiceBus
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Create Or Update Subscription operation.
10
+ #
11
+ class SubscriptionCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Subscription data center location.
16
+ attr_accessor :location
17
+
18
+ # @return [String] Resource manager type of the resource.
19
+ attr_accessor :type
20
+
21
+ # @return [DateTime] Last time there was a receive request to this
22
+ # subscription.
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 [MessageCountDetails]
30
+ attr_accessor :count_details
31
+
32
+ # @return [DateTime] Exact time the message was created.
33
+ attr_accessor :created_at
34
+
35
+ # @return [String] Default message time to live value. This is the
36
+ # duration after which the message expires, starting from when the
37
+ # message is sent to Service Bus. This is the default value used when
38
+ # TimeToLive is not set on a message itself.
39
+ attr_accessor :default_message_time_to_live
40
+
41
+ # @return [Boolean] Value that indicates whether a subscription has dead
42
+ # letter support on filter evaluation exceptions.
43
+ attr_accessor :dead_lettering_on_filter_evaluation_exceptions
44
+
45
+ # @return [Boolean] Value that indicates whether a subscription has dead
46
+ # letter support when a message expires.
47
+ attr_accessor :dead_lettering_on_message_expiration
48
+
49
+ # @return [Boolean] Value that indicates whether server-side batched
50
+ # operations are enabled.
51
+ attr_accessor :enable_batched_operations
52
+
53
+ # @return [EntityAvailabilityStatus] Entity availability status for the
54
+ # topic. Possible values include: 'Available', 'Limited', 'Renaming',
55
+ # 'Restoring', 'Unknown'
56
+ attr_accessor :entity_availability_status
57
+
58
+ # @return [Boolean] Value that indicates whether the entity description
59
+ # is read-only.
60
+ attr_accessor :is_read_only
61
+
62
+ # @return [String] The lock duration time span for the subscription.
63
+ attr_accessor :lock_duration
64
+
65
+ # @return [Integer] Number of maximum deliveries.
66
+ attr_accessor :max_delivery_count
67
+
68
+ # @return [Integer] Number of messages.
69
+ attr_accessor :message_count
70
+
71
+ # @return [Boolean] Value indicating if a subscription supports the
72
+ # concept of sessions.
73
+ attr_accessor :requires_session
74
+
75
+ # @return [EntityStatus] Enumerates the possible values for the status of
76
+ # a messaging entity. Possible values include: 'Active', 'Creating',
77
+ # 'Deleting', 'Disabled', 'ReceiveDisabled', 'Renaming', 'Restoring',
78
+ # 'SendDisabled', 'Unknown'
79
+ attr_accessor :status
80
+
81
+ # @return [DateTime] The exact time the message was updated.
82
+ attr_accessor :updated_at
83
+
84
+
85
+ #
86
+ # Mapper for SubscriptionCreateOrUpdateParameters class as Ruby Hash.
87
+ # This will be used for serialization/deserialization.
88
+ #
89
+ def self.mapper()
90
+ {
91
+ required: false,
92
+ serialized_name: 'SubscriptionCreateOrUpdateParameters',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'SubscriptionCreateOrUpdateParameters',
96
+ model_properties: {
97
+ location: {
98
+ required: true,
99
+ serialized_name: 'location',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ type: {
105
+ required: false,
106
+ serialized_name: 'type',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ accessed_at: {
112
+ required: false,
113
+ serialized_name: 'properties.accessedAt',
114
+ type: {
115
+ name: 'DateTime'
116
+ }
117
+ },
118
+ auto_delete_on_idle: {
119
+ required: false,
120
+ serialized_name: 'properties.autoDeleteOnIdle',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ count_details: {
126
+ required: false,
127
+ serialized_name: 'properties.countDetails',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'MessageCountDetails'
131
+ }
132
+ },
133
+ created_at: {
134
+ required: false,
135
+ serialized_name: 'properties.createdAt',
136
+ type: {
137
+ name: 'DateTime'
138
+ }
139
+ },
140
+ default_message_time_to_live: {
141
+ required: false,
142
+ serialized_name: 'properties.defaultMessageTimeToLive',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ dead_lettering_on_filter_evaluation_exceptions: {
148
+ required: false,
149
+ serialized_name: 'properties.deadLetteringOnFilterEvaluationExceptions',
150
+ type: {
151
+ name: 'Boolean'
152
+ }
153
+ },
154
+ dead_lettering_on_message_expiration: {
155
+ required: false,
156
+ serialized_name: 'properties.deadLetteringOnMessageExpiration',
157
+ type: {
158
+ name: 'Boolean'
159
+ }
160
+ },
161
+ enable_batched_operations: {
162
+ required: false,
163
+ serialized_name: 'properties.enableBatchedOperations',
164
+ type: {
165
+ name: 'Boolean'
166
+ }
167
+ },
168
+ entity_availability_status: {
169
+ required: false,
170
+ serialized_name: 'properties.entityAvailabilityStatus',
171
+ type: {
172
+ name: 'Enum',
173
+ module: 'EntityAvailabilityStatus'
174
+ }
175
+ },
176
+ is_read_only: {
177
+ required: false,
178
+ serialized_name: 'properties.isReadOnly',
179
+ type: {
180
+ name: 'Boolean'
181
+ }
182
+ },
183
+ lock_duration: {
184
+ required: false,
185
+ serialized_name: 'properties.lockDuration',
186
+ type: {
187
+ name: 'String'
188
+ }
189
+ },
190
+ max_delivery_count: {
191
+ required: false,
192
+ serialized_name: 'properties.maxDeliveryCount',
193
+ type: {
194
+ name: 'Number'
195
+ }
196
+ },
197
+ message_count: {
198
+ required: false,
199
+ serialized_name: 'properties.messageCount',
200
+ type: {
201
+ name: 'Number'
202
+ }
203
+ },
204
+ requires_session: {
205
+ required: false,
206
+ serialized_name: 'properties.requiresSession',
207
+ type: {
208
+ name: 'Boolean'
209
+ }
210
+ },
211
+ status: {
212
+ required: false,
213
+ serialized_name: 'properties.status',
214
+ type: {
215
+ name: 'Enum',
216
+ module: 'EntityStatus'
217
+ }
218
+ },
219
+ updated_at: {
220
+ required: false,
221
+ serialized_name: 'properties.updatedAt',
222
+ type: {
223
+ name: 'DateTime'
224
+ }
225
+ }
226
+ }
227
+ }
228
+ }
229
+ end
230
+ end
231
+ end
232
+ end
@@ -0,0 +1,95 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::ServiceBus
7
+ module Models
8
+ #
9
+ # The response to the List Subscriptions operation.
10
+ #
11
+ class SubscriptionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<SubscriptionResource>] Result of the List Subscriptions
16
+ # 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 subscriptions.
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<SubscriptionResource>] 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 [SubscriptionListResult] 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 SubscriptionListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'SubscriptionListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'SubscriptionListResult',
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: 'SubscriptionResourceElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'SubscriptionResource'
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,257 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::ServiceBus
7
+ module Models
8
+ #
9
+ # Description of subscription resource.
10
+ #
11
+ class SubscriptionResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] Last time there was a receive request to this
16
+ # subscription.
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 [MessageCountDetails]
24
+ attr_accessor :count_details
25
+
26
+ # @return [DateTime] Exact time the message was created.
27
+ attr_accessor :created_at
28
+
29
+ # @return [String] Default message time to live value. This is the
30
+ # duration after which the message expires, starting from when the
31
+ # message is sent to Service Bus. This is the default value used when
32
+ # TimeToLive is not set on a message itself.
33
+ attr_accessor :default_message_time_to_live
34
+
35
+ # @return [Boolean] Value that indicates whether a subscription has dead
36
+ # letter support on filter evaluation exceptions.
37
+ attr_accessor :dead_lettering_on_filter_evaluation_exceptions
38
+
39
+ # @return [Boolean] Value that indicates whether a subscription has dead
40
+ # letter support when a message expires.
41
+ attr_accessor :dead_lettering_on_message_expiration
42
+
43
+ # @return [Boolean] Value that indicates whether server-side batched
44
+ # operations are enabled.
45
+ attr_accessor :enable_batched_operations
46
+
47
+ # @return [EntityAvailabilityStatus] Entity availability status for the
48
+ # topic. Possible values include: 'Available', 'Limited', 'Renaming',
49
+ # 'Restoring', 'Unknown'
50
+ attr_accessor :entity_availability_status
51
+
52
+ # @return [Boolean] Value that indicates whether the entity description
53
+ # is read-only.
54
+ attr_accessor :is_read_only
55
+
56
+ # @return [String] The lock duration time span for the subscription.
57
+ attr_accessor :lock_duration
58
+
59
+ # @return [Integer] Number of maximum deliveries.
60
+ attr_accessor :max_delivery_count
61
+
62
+ # @return [Integer] Number of messages.
63
+ attr_accessor :message_count
64
+
65
+ # @return [Boolean] Value indicating if a subscription supports the
66
+ # concept of sessions.
67
+ attr_accessor :requires_session
68
+
69
+ # @return [EntityStatus] Enumerates the possible values for the status of
70
+ # a messaging entity. Possible values include: 'Active', 'Creating',
71
+ # 'Deleting', 'Disabled', 'ReceiveDisabled', 'Renaming', 'Restoring',
72
+ # 'SendDisabled', 'Unknown'
73
+ attr_accessor :status
74
+
75
+ # @return [DateTime] The exact time the message was updated.
76
+ attr_accessor :updated_at
77
+
78
+
79
+ #
80
+ # Mapper for SubscriptionResource class as Ruby Hash.
81
+ # This will be used for serialization/deserialization.
82
+ #
83
+ def self.mapper()
84
+ {
85
+ required: false,
86
+ serialized_name: 'SubscriptionResource',
87
+ type: {
88
+ name: 'Composite',
89
+ class_name: 'SubscriptionResource',
90
+ model_properties: {
91
+ id: {
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'id',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ name: {
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'name',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ },
107
+ type: {
108
+ required: false,
109
+ read_only: true,
110
+ serialized_name: 'type',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ location: {
116
+ required: true,
117
+ serialized_name: 'location',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ tags: {
123
+ required: false,
124
+ serialized_name: 'tags',
125
+ type: {
126
+ name: 'Dictionary',
127
+ value: {
128
+ required: false,
129
+ serialized_name: 'StringElementType',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ }
134
+ }
135
+ },
136
+ accessed_at: {
137
+ required: false,
138
+ serialized_name: 'properties.accessedAt',
139
+ type: {
140
+ name: 'DateTime'
141
+ }
142
+ },
143
+ auto_delete_on_idle: {
144
+ required: false,
145
+ serialized_name: 'properties.autoDeleteOnIdle',
146
+ type: {
147
+ name: 'String'
148
+ }
149
+ },
150
+ count_details: {
151
+ required: false,
152
+ serialized_name: 'properties.countDetails',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'MessageCountDetails'
156
+ }
157
+ },
158
+ created_at: {
159
+ required: false,
160
+ serialized_name: 'properties.createdAt',
161
+ type: {
162
+ name: 'DateTime'
163
+ }
164
+ },
165
+ default_message_time_to_live: {
166
+ required: false,
167
+ serialized_name: 'properties.defaultMessageTimeToLive',
168
+ type: {
169
+ name: 'String'
170
+ }
171
+ },
172
+ dead_lettering_on_filter_evaluation_exceptions: {
173
+ required: false,
174
+ serialized_name: 'properties.deadLetteringOnFilterEvaluationExceptions',
175
+ type: {
176
+ name: 'Boolean'
177
+ }
178
+ },
179
+ dead_lettering_on_message_expiration: {
180
+ required: false,
181
+ serialized_name: 'properties.deadLetteringOnMessageExpiration',
182
+ type: {
183
+ name: 'Boolean'
184
+ }
185
+ },
186
+ enable_batched_operations: {
187
+ required: false,
188
+ serialized_name: 'properties.enableBatchedOperations',
189
+ type: {
190
+ name: 'Boolean'
191
+ }
192
+ },
193
+ entity_availability_status: {
194
+ required: false,
195
+ serialized_name: 'properties.entityAvailabilityStatus',
196
+ type: {
197
+ name: 'Enum',
198
+ module: 'EntityAvailabilityStatus'
199
+ }
200
+ },
201
+ is_read_only: {
202
+ required: false,
203
+ serialized_name: 'properties.isReadOnly',
204
+ type: {
205
+ name: 'Boolean'
206
+ }
207
+ },
208
+ lock_duration: {
209
+ required: false,
210
+ serialized_name: 'properties.lockDuration',
211
+ type: {
212
+ name: 'String'
213
+ }
214
+ },
215
+ max_delivery_count: {
216
+ required: false,
217
+ serialized_name: 'properties.maxDeliveryCount',
218
+ type: {
219
+ name: 'Number'
220
+ }
221
+ },
222
+ message_count: {
223
+ required: false,
224
+ serialized_name: 'properties.messageCount',
225
+ type: {
226
+ name: 'Number'
227
+ }
228
+ },
229
+ requires_session: {
230
+ required: false,
231
+ serialized_name: 'properties.requiresSession',
232
+ type: {
233
+ name: 'Boolean'
234
+ }
235
+ },
236
+ status: {
237
+ required: false,
238
+ serialized_name: 'properties.status',
239
+ type: {
240
+ name: 'Enum',
241
+ module: 'EntityStatus'
242
+ }
243
+ },
244
+ updated_at: {
245
+ required: false,
246
+ serialized_name: 'properties.updatedAt',
247
+ type: {
248
+ name: 'DateTime'
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ end
255
+ end
256
+ end
257
+ end