azure_mgmt_service_bus 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_service_bus.rb +24 -13
  3. data/lib/generated/azure_mgmt_service_bus/event_hubs.rb +229 -0
  4. data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +0 -0
  5. data/lib/generated/azure_mgmt_service_bus/models/capture_description.rb +103 -0
  6. data/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb +0 -0
  7. data/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +0 -0
  8. data/lib/generated/azure_mgmt_service_bus/models/destination.rb +79 -0
  9. data/lib/generated/azure_mgmt_service_bus/models/encoding_capture_description.rb +16 -0
  10. data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +0 -0
  11. data/lib/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb +96 -0
  12. data/lib/generated/azure_mgmt_service_bus/models/eventhub.rb +154 -0
  13. data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +0 -0
  14. data/lib/generated/azure_mgmt_service_bus/models/operation.rb +0 -0
  15. data/lib/generated/azure_mgmt_service_bus/models/operation_display.rb +0 -0
  16. data/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb +0 -0
  17. data/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb +91 -0
  18. data/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb +97 -0
  19. data/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb +58 -0
  20. data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +0 -0
  21. data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +0 -0
  22. data/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb +1 -1
  23. data/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb +0 -0
  24. data/lib/generated/azure_mgmt_service_bus/module_definition.rb +0 -0
  25. data/lib/generated/azure_mgmt_service_bus/namespaces.rb +0 -0
  26. data/lib/generated/azure_mgmt_service_bus/operations.rb +0 -0
  27. data/lib/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb +215 -0
  28. data/lib/generated/azure_mgmt_service_bus/queues.rb +0 -0
  29. data/lib/generated/azure_mgmt_service_bus/regions.rb +220 -0
  30. data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +13 -0
  31. data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +0 -0
  32. data/lib/generated/azure_mgmt_service_bus/topics.rb +0 -0
  33. data/lib/generated/azure_mgmt_service_bus/version.rb +1 -1
  34. metadata +15 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd14dc41e14f5731ca8bdb039a46780066d6b161
4
- data.tar.gz: 87c568b3519ebac6fd4fbbf1248fffd06b3595f5
3
+ metadata.gz: f69464686232baf3be7a3541e38410f3c3cfac05
4
+ data.tar.gz: 4dda3ba1b54f809ee76d2e4ce911367f9a250a58
5
5
  SHA512:
6
- metadata.gz: 4baca04b64f6e7cffc21b9f7e3545dc4c8c5b5d90855b5e81e765cbd037d28d8ef47ce02bb28b6c2330322fe55657a98f24880c7cdbed917f3f5f4133e01affb
7
- data.tar.gz: d95554fb292e45f6b236e241678d5bbce782cddaffb44e4f0cc8470469b1ea81bd268534490fd38564e24e8223a20d615c20ba6a26df5c641ad3e7a65bbbd163
6
+ metadata.gz: 703b239738744d9367a001a722df0e6f54fa2c56e1e00e5676cde13bd3b462e319407bce2920b15db77ea55d63b2191acce2ddfe6ade8d075b251e9ae9d192de
7
+ data.tar.gz: bfbeee5eebe626b6589ad48ccaa79cf1a045cab1d5b191de37b048dcaeb9463da89dfe048364f7528d3bf70833efb78598bf3b8cafa8a6f90cfcba8c93d19ea2
@@ -26,29 +26,37 @@ module Azure::ARM::ServiceBus
26
26
  autoload :Topics, 'generated/azure_mgmt_service_bus/topics.rb'
27
27
  autoload :Subscriptions, 'generated/azure_mgmt_service_bus/subscriptions.rb'
28
28
  autoload :Rules, 'generated/azure_mgmt_service_bus/rules.rb'
29
+ autoload :Regions, 'generated/azure_mgmt_service_bus/regions.rb'
30
+ autoload :PremiumMessagingRegionsOperations, 'generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb'
31
+ autoload :EventHubs, 'generated/azure_mgmt_service_bus/event_hubs.rb'
29
32
  autoload :ServiceBusManagementClient, 'generated/azure_mgmt_service_bus/service_bus_management_client.rb'
30
33
 
31
34
  module Models
32
- autoload :CorrelationFilter, 'generated/azure_mgmt_service_bus/models/correlation_filter.rb'
33
- autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb'
34
- autoload :MessageCountDetails, 'generated/azure_mgmt_service_bus/models/message_count_details.rb'
35
- autoload :SBSku, 'generated/azure_mgmt_service_bus/models/sbsku.rb'
36
- autoload :Operation, 'generated/azure_mgmt_service_bus/models/operation.rb'
37
- autoload :SBNamespaceListResult, 'generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb'
35
+ autoload :CheckNameAvailability, 'generated/azure_mgmt_service_bus/models/check_name_availability.rb'
36
+ autoload :PremiumMessagingRegionsListResult, 'generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb'
38
37
  autoload :SBQueueListResult, 'generated/azure_mgmt_service_bus/models/sbqueue_list_result.rb'
39
- autoload :OperationListResult, 'generated/azure_mgmt_service_bus/models/operation_list_result.rb'
40
- autoload :AuthorizationRuleProperties, 'generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb'
38
+ autoload :PremiumMessagingRegionsProperties, 'generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb'
39
+ autoload :EventHubListResult, 'generated/azure_mgmt_service_bus/models/event_hub_list_result.rb'
41
40
  autoload :SBTopicListResult, 'generated/azure_mgmt_service_bus/models/sbtopic_list_result.rb'
42
- autoload :SqlFilter, 'generated/azure_mgmt_service_bus/models/sql_filter.rb'
41
+ autoload :CaptureDescription, 'generated/azure_mgmt_service_bus/models/capture_description.rb'
43
42
  autoload :RuleListResult, 'generated/azure_mgmt_service_bus/models/rule_list_result.rb'
44
- autoload :ErrorResponse, 'generated/azure_mgmt_service_bus/models/error_response.rb'
43
+ autoload :SBAuthorizationRuleListResult, 'generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb'
45
44
  autoload :SBSubscriptionListResult, 'generated/azure_mgmt_service_bus/models/sbsubscription_list_result.rb'
46
45
  autoload :AccessKeys, 'generated/azure_mgmt_service_bus/models/access_keys.rb'
47
- autoload :CheckNameAvailability, 'generated/azure_mgmt_service_bus/models/check_name_availability.rb'
48
- autoload :SBAuthorizationRuleListResult, 'generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb'
46
+ autoload :CorrelationFilter, 'generated/azure_mgmt_service_bus/models/correlation_filter.rb'
47
+ autoload :MessageCountDetails, 'generated/azure_mgmt_service_bus/models/message_count_details.rb'
49
48
  autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_service_bus/models/check_name_availability_result.rb'
50
- autoload :Action, 'generated/azure_mgmt_service_bus/models/action.rb'
49
+ autoload :SBSku, 'generated/azure_mgmt_service_bus/models/sbsku.rb'
51
50
  autoload :OperationDisplay, 'generated/azure_mgmt_service_bus/models/operation_display.rb'
51
+ autoload :Destination, 'generated/azure_mgmt_service_bus/models/destination.rb'
52
+ autoload :Operation, 'generated/azure_mgmt_service_bus/models/operation.rb'
53
+ autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb'
54
+ autoload :OperationListResult, 'generated/azure_mgmt_service_bus/models/operation_list_result.rb'
55
+ autoload :SBNamespaceListResult, 'generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb'
56
+ autoload :ErrorResponse, 'generated/azure_mgmt_service_bus/models/error_response.rb'
57
+ autoload :Action, 'generated/azure_mgmt_service_bus/models/action.rb'
58
+ autoload :AuthorizationRuleProperties, 'generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb'
59
+ autoload :SqlFilter, 'generated/azure_mgmt_service_bus/models/sql_filter.rb'
52
60
  autoload :TrackedResource, 'generated/azure_mgmt_service_bus/models/tracked_resource.rb'
53
61
  autoload :ResourceNamespacePatch, 'generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb'
54
62
  autoload :SBNamespace, 'generated/azure_mgmt_service_bus/models/sbnamespace.rb'
@@ -59,6 +67,8 @@ module Azure::ARM::ServiceBus
59
67
  autoload :SBSubscription, 'generated/azure_mgmt_service_bus/models/sbsubscription.rb'
60
68
  autoload :Rule, 'generated/azure_mgmt_service_bus/models/rule.rb'
61
69
  autoload :SqlRuleAction, 'generated/azure_mgmt_service_bus/models/sql_rule_action.rb'
70
+ autoload :PremiumMessagingRegions, 'generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb'
71
+ autoload :Eventhub, 'generated/azure_mgmt_service_bus/models/eventhub.rb'
62
72
  autoload :SkuName, 'generated/azure_mgmt_service_bus/models/sku_name.rb'
63
73
  autoload :SkuTier, 'generated/azure_mgmt_service_bus/models/sku_tier.rb'
64
74
  autoload :AccessRights, 'generated/azure_mgmt_service_bus/models/access_rights.rb'
@@ -66,5 +76,6 @@ module Azure::ARM::ServiceBus
66
76
  autoload :EntityStatus, 'generated/azure_mgmt_service_bus/models/entity_status.rb'
67
77
  autoload :UnavailableReason, 'generated/azure_mgmt_service_bus/models/unavailable_reason.rb'
68
78
  autoload :FilterType, 'generated/azure_mgmt_service_bus/models/filter_type.rb'
79
+ autoload :EncodingCaptureDescription, 'generated/azure_mgmt_service_bus/models/encoding_capture_description.rb'
69
80
  end
70
81
  end
@@ -0,0 +1,229 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::ServiceBus
7
+ #
8
+ # Azure Service Bus client
9
+ #
10
+ class EventHubs
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the EventHubs class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ServiceBusManagementClient] reference to the ServiceBusManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets all the Event Hubs in a service bus Namespace.
26
+ #
27
+ # @param resource_group_name [String] Name of the Resource group within the
28
+ # Azure subscription.
29
+ # @param namespace_name [String] The namespace name
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [Array<Eventhub>] operation results.
34
+ #
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)
37
+ first_page.get_all_items
38
+ end
39
+
40
+ #
41
+ # Gets all the Event Hubs in a service bus Namespace.
42
+ #
43
+ # @param resource_group_name [String] Name of the Resource group within the
44
+ # Azure subscription.
45
+ # @param namespace_name [String] The namespace name
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
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).value!
53
+ end
54
+
55
+ #
56
+ # Gets all the Event Hubs in a service bus Namespace.
57
+ #
58
+ # @param resource_group_name [String] Name of the Resource group within the
59
+ # Azure subscription.
60
+ # @param namespace_name [String] The namespace name
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
67
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
69
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
70
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
+
72
+
73
+ request_headers = {}
74
+
75
+ # Set Headers
76
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
77
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
78
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/eventhubs'
79
+
80
+ request_url = @base_url || @client.base_url
81
+
82
+ options = {
83
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
84
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
85
+ query_params: {'api-version' => @client.api_version},
86
+ headers: request_headers.merge(custom_headers || {}),
87
+ base_url: request_url
88
+ }
89
+ promise = @client.make_request_async(:get, path_template, options)
90
+
91
+ promise = promise.then do |result|
92
+ http_response = result.response
93
+ status_code = http_response.status
94
+ response_content = http_response.body
95
+ unless status_code == 200
96
+ error_model = JSON.load(response_content)
97
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
98
+ end
99
+
100
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
101
+ # Deserialize Response
102
+ if status_code == 200
103
+ begin
104
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
+ result_mapper = Azure::ARM::ServiceBus::Models::EventHubListResult.mapper()
106
+ result.body = @client.deserialize(result_mapper, parsed_response)
107
+ rescue Exception => e
108
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
109
+ end
110
+ end
111
+
112
+ result
113
+ end
114
+
115
+ promise.execute
116
+ end
117
+
118
+ #
119
+ # Gets all the Event Hubs in a service bus Namespace.
120
+ #
121
+ # @param next_page_link [String] The NextLink from the previous successful call
122
+ # to List operation.
123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
124
+ # will be added to the HTTP request.
125
+ #
126
+ # @return [EventHubListResult] operation results.
127
+ #
128
+ def list_by_namespace_next(next_page_link, custom_headers = nil)
129
+ response = list_by_namespace_next_async(next_page_link, custom_headers).value!
130
+ response.body unless response.nil?
131
+ end
132
+
133
+ #
134
+ # Gets all the Event Hubs in a service bus Namespace.
135
+ #
136
+ # @param next_page_link [String] The NextLink from the previous successful call
137
+ # to List operation.
138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
139
+ # will be added to the HTTP request.
140
+ #
141
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
+ #
143
+ def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
144
+ list_by_namespace_next_async(next_page_link, custom_headers).value!
145
+ end
146
+
147
+ #
148
+ # Gets all the Event Hubs in a service bus Namespace.
149
+ #
150
+ # @param next_page_link [String] The NextLink from the previous successful call
151
+ # to List operation.
152
+ # @param [Hash{String => String}] A hash of custom headers that will be added
153
+ # to the HTTP request.
154
+ #
155
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
156
+ #
157
+ def list_by_namespace_next_async(next_page_link, custom_headers = nil)
158
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
159
+
160
+
161
+ request_headers = {}
162
+
163
+ # Set Headers
164
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
165
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
166
+ path_template = '{nextLink}'
167
+
168
+ request_url = @base_url || @client.base_url
169
+
170
+ options = {
171
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
172
+ skip_encoding_path_params: {'nextLink' => next_page_link},
173
+ headers: request_headers.merge(custom_headers || {}),
174
+ base_url: request_url
175
+ }
176
+ promise = @client.make_request_async(:get, path_template, options)
177
+
178
+ promise = promise.then do |result|
179
+ http_response = result.response
180
+ status_code = http_response.status
181
+ response_content = http_response.body
182
+ unless status_code == 200
183
+ error_model = JSON.load(response_content)
184
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
185
+ end
186
+
187
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
188
+ # Deserialize Response
189
+ if status_code == 200
190
+ begin
191
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
192
+ result_mapper = Azure::ARM::ServiceBus::Models::EventHubListResult.mapper()
193
+ result.body = @client.deserialize(result_mapper, parsed_response)
194
+ rescue Exception => e
195
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
196
+ end
197
+ end
198
+
199
+ result
200
+ end
201
+
202
+ promise.execute
203
+ end
204
+
205
+ #
206
+ # Gets all the Event Hubs in a service bus Namespace.
207
+ #
208
+ # @param resource_group_name [String] Name of the Resource group within the
209
+ # Azure subscription.
210
+ # @param namespace_name [String] The namespace name
211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
212
+ # will be added to the HTTP request.
213
+ #
214
+ # @return [EventHubListResult] which provide lazy access to pages of the
215
+ # response.
216
+ #
217
+ def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
218
+ response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
219
+ unless response.nil?
220
+ page = response.body
221
+ page.next_method = Proc.new do |next_page_link|
222
+ list_by_namespace_next_async(next_page_link, custom_headers)
223
+ end
224
+ page
225
+ end
226
+ end
227
+
228
+ end
229
+ end
@@ -0,0 +1,103 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # Properties to configure capture description for eventhub
10
+ #
11
+ class CaptureDescription
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Boolean] A value that indicates whether capture description is
17
+ # enabled.
18
+ attr_accessor :enabled
19
+
20
+ # @return [EncodingCaptureDescription] Enumerates the possible values for
21
+ # the encoding format of capture description. Possible values include:
22
+ # 'Avro', 'AvroDeflate'
23
+ attr_accessor :encoding
24
+
25
+ # @return [Integer] The time window allows you to set the frequency with
26
+ # which the capture to Azure Blobs will happen, value should between 60
27
+ # to 900 seconds
28
+ attr_accessor :interval_in_seconds
29
+
30
+ # @return [Integer] The size window defines the amount of data built up
31
+ # in your Event Hub before an capture operation, value should be between
32
+ # 10485760 and 524288000 bytes
33
+ attr_accessor :size_limit_in_bytes
34
+
35
+ # @return [Destination] Properties of Destination where capture will be
36
+ # stored. (Storage Account, Blob Names)
37
+ attr_accessor :destination
38
+
39
+
40
+ #
41
+ # Mapper for CaptureDescription class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ required: false,
47
+ serialized_name: 'CaptureDescription',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'CaptureDescription',
51
+ model_properties: {
52
+ enabled: {
53
+ required: false,
54
+ serialized_name: 'enabled',
55
+ type: {
56
+ name: 'Boolean'
57
+ }
58
+ },
59
+ encoding: {
60
+ required: false,
61
+ serialized_name: 'encoding',
62
+ type: {
63
+ name: 'Enum',
64
+ module: 'EncodingCaptureDescription'
65
+ }
66
+ },
67
+ interval_in_seconds: {
68
+ required: false,
69
+ serialized_name: 'intervalInSeconds',
70
+ constraints: {
71
+ InclusiveMaximum: 900,
72
+ InclusiveMinimum: 60
73
+ },
74
+ type: {
75
+ name: 'Number'
76
+ }
77
+ },
78
+ size_limit_in_bytes: {
79
+ required: false,
80
+ serialized_name: 'sizeLimitInBytes',
81
+ constraints: {
82
+ InclusiveMaximum: 524288000,
83
+ InclusiveMinimum: 10485760
84
+ },
85
+ type: {
86
+ name: 'Number'
87
+ }
88
+ },
89
+ destination: {
90
+ required: false,
91
+ serialized_name: 'destination',
92
+ type: {
93
+ name: 'Composite',
94
+ class_name: 'Destination'
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,79 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # Capture storage details for capture description
10
+ #
11
+ class Destination
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Name for capture destination
17
+ attr_accessor :name
18
+
19
+ # @return [String] Resource id of the storage account to be used to
20
+ # create the blobs
21
+ attr_accessor :storage_account_resource_id
22
+
23
+ # @return [String] Blob container Name
24
+ attr_accessor :blob_container
25
+
26
+ # @return [String] Blob naming convention for archive, e.g.
27
+ # {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}.
28
+ # Here all the parameters (Namespace,EventHub .. etc) are mandatory
29
+ # irrespective of order
30
+ attr_accessor :archive_name_format
31
+
32
+
33
+ #
34
+ # Mapper for Destination class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ required: false,
40
+ serialized_name: 'Destination',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'Destination',
44
+ model_properties: {
45
+ name: {
46
+ required: false,
47
+ serialized_name: 'name',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ storage_account_resource_id: {
53
+ required: false,
54
+ serialized_name: 'properties.storageAccountResourceId',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ blob_container: {
60
+ required: false,
61
+ serialized_name: 'properties.blobContainer',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ archive_name_format: {
67
+ required: false,
68
+ serialized_name: 'properties.archiveNameFormat',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end