azure_mgmt_event_hub 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_event_hub.rb +23 -15
- data/lib/generated/azure_mgmt_event_hub/consumer_groups.rb +123 -111
- data/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb +6 -2
- data/lib/generated/azure_mgmt_event_hub/event_hubs.rb +240 -218
- data/lib/generated/azure_mgmt_event_hub/models/{resource_list_keys.rb → access_keys.rb} +9 -8
- data/lib/generated/azure_mgmt_event_hub/models/access_rights.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/models/{shared_access_authorization_rule_create_or_update_parameters.rb → authorization_rule.rb} +21 -19
- data/lib/generated/azure_mgmt_event_hub/models/{shared_access_authorization_rule_list_result.rb → authorization_rule_list_result.rb} +13 -14
- data/lib/generated/azure_mgmt_event_hub/models/capture_description.rb +103 -0
- data/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +45 -0
- data/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +72 -0
- data/lib/generated/azure_mgmt_event_hub/models/{consumer_group_create_or_update_parameters.rb → consumer_group.rb} +21 -34
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +8 -7
- data/lib/generated/azure_mgmt_event_hub/models/destination.rb +79 -0
- data/lib/generated/azure_mgmt_event_hub/models/{namespace_resource.rb → ehnamespace.rb} +54 -11
- data/lib/generated/azure_mgmt_event_hub/models/{namespace_list_result.rb → ehnamespace_list_result.rb} +12 -12
- data/lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb +16 -0
- data/lib/generated/azure_mgmt_event_hub/models/entity_status.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/models/error_response.rb +56 -0
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +8 -8
- data/lib/generated/azure_mgmt_event_hub/models/{event_hub_resource.rb → eventhub.rb} +43 -43
- data/lib/generated/azure_mgmt_event_hub/models/{policykey.rb → key_type.rb} +3 -3
- data/lib/generated/azure_mgmt_event_hub/models/operation.rb +57 -0
- data/lib/generated/azure_mgmt_event_hub/models/operation_display.rb +69 -0
- data/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb +99 -0
- data/lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +59 -0
- data/lib/generated/azure_mgmt_event_hub/models/sku.rb +12 -6
- data/lib/generated/azure_mgmt_event_hub/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb +1 -2
- data/lib/generated/azure_mgmt_event_hub/models/{shared_access_authorization_rule_resource.rb → tracked_resource.rb} +13 -24
- data/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
- data/lib/generated/azure_mgmt_event_hub/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/namespaces.rb +480 -251
- data/lib/generated/azure_mgmt_event_hub/operations.rb +213 -0
- data/lib/generated/azure_mgmt_event_hub/version.rb +2 -2
- metadata +25 -17
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb +0 -122
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +0 -139
- data/lib/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +0 -113
- data/lib/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb +0 -46
@@ -0,0 +1,213 @@
|
|
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::EventHub
|
7
|
+
#
|
8
|
+
# Azure Event Hubs client
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [EventHubManagementClient] reference to the EventHubManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists all of the available Event Hub REST API operations.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [Array<Operation>] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers = nil)
|
33
|
+
first_page = list_as_lazy(custom_headers)
|
34
|
+
first_page.get_all_items
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Lists all of the available Event Hub REST API operations.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers = nil)
|
46
|
+
list_async(custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Lists all of the available Event Hub REST API operations.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers = nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
|
60
|
+
|
61
|
+
request_headers = {}
|
62
|
+
|
63
|
+
# Set Headers
|
64
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
65
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
66
|
+
path_template = 'providers/Microsoft.EventHub/operations'
|
67
|
+
|
68
|
+
request_url = @base_url || @client.base_url
|
69
|
+
|
70
|
+
options = {
|
71
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
72
|
+
query_params: {'api-version' => @client.api_version},
|
73
|
+
headers: request_headers.merge(custom_headers || {}),
|
74
|
+
base_url: request_url
|
75
|
+
}
|
76
|
+
promise = @client.make_request_async(:get, path_template, options)
|
77
|
+
|
78
|
+
promise = promise.then do |result|
|
79
|
+
http_response = result.response
|
80
|
+
status_code = http_response.status
|
81
|
+
response_content = http_response.body
|
82
|
+
unless status_code == 200
|
83
|
+
error_model = JSON.load(response_content)
|
84
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
85
|
+
end
|
86
|
+
|
87
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
88
|
+
# Deserialize Response
|
89
|
+
if status_code == 200
|
90
|
+
begin
|
91
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
92
|
+
result_mapper = Azure::ARM::EventHub::Models::OperationListResult.mapper()
|
93
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
94
|
+
rescue Exception => e
|
95
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
result
|
100
|
+
end
|
101
|
+
|
102
|
+
promise.execute
|
103
|
+
end
|
104
|
+
|
105
|
+
#
|
106
|
+
# Lists all of the available Event Hub REST API operations.
|
107
|
+
#
|
108
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
109
|
+
# to List operation.
|
110
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
111
|
+
# will be added to the HTTP request.
|
112
|
+
#
|
113
|
+
# @return [OperationListResult] operation results.
|
114
|
+
#
|
115
|
+
def list_next(next_page_link, custom_headers = nil)
|
116
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
117
|
+
response.body unless response.nil?
|
118
|
+
end
|
119
|
+
|
120
|
+
#
|
121
|
+
# Lists all of the available Event Hub REST API operations.
|
122
|
+
#
|
123
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
124
|
+
# to List operation.
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
|
+
#
|
130
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
131
|
+
list_next_async(next_page_link, custom_headers).value!
|
132
|
+
end
|
133
|
+
|
134
|
+
#
|
135
|
+
# Lists all of the available Event Hub REST API operations.
|
136
|
+
#
|
137
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
138
|
+
# to List operation.
|
139
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
140
|
+
# to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
143
|
+
#
|
144
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
145
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
146
|
+
|
147
|
+
|
148
|
+
request_headers = {}
|
149
|
+
|
150
|
+
# Set Headers
|
151
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
152
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
153
|
+
path_template = '{nextLink}'
|
154
|
+
|
155
|
+
request_url = @base_url || @client.base_url
|
156
|
+
|
157
|
+
options = {
|
158
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
159
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
160
|
+
headers: request_headers.merge(custom_headers || {}),
|
161
|
+
base_url: request_url
|
162
|
+
}
|
163
|
+
promise = @client.make_request_async(:get, path_template, options)
|
164
|
+
|
165
|
+
promise = promise.then do |result|
|
166
|
+
http_response = result.response
|
167
|
+
status_code = http_response.status
|
168
|
+
response_content = http_response.body
|
169
|
+
unless status_code == 200
|
170
|
+
error_model = JSON.load(response_content)
|
171
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
172
|
+
end
|
173
|
+
|
174
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
175
|
+
# Deserialize Response
|
176
|
+
if status_code == 200
|
177
|
+
begin
|
178
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
179
|
+
result_mapper = Azure::ARM::EventHub::Models::OperationListResult.mapper()
|
180
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
181
|
+
rescue Exception => e
|
182
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
result
|
187
|
+
end
|
188
|
+
|
189
|
+
promise.execute
|
190
|
+
end
|
191
|
+
|
192
|
+
#
|
193
|
+
# Lists all of the available Event Hub REST API operations.
|
194
|
+
#
|
195
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
196
|
+
# will be added to the HTTP request.
|
197
|
+
#
|
198
|
+
# @return [OperationListResult] which provide lazy access to pages of the
|
199
|
+
# response.
|
200
|
+
#
|
201
|
+
def list_as_lazy(custom_headers = nil)
|
202
|
+
response = list_async(custom_headers).value!
|
203
|
+
unless response.nil?
|
204
|
+
page = response.body
|
205
|
+
page.next_method = Proc.new do |next_page_link|
|
206
|
+
list_next_async(next_page_link, custom_headers)
|
207
|
+
end
|
208
|
+
page
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::EventHub
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.11.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_event_hub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.8.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.8.0
|
83
83
|
description: Microsoft Azure Event Hub Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -92,28 +92,36 @@ files:
|
|
92
92
|
- lib/generated/azure_mgmt_event_hub/consumer_groups.rb
|
93
93
|
- lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb
|
94
94
|
- lib/generated/azure_mgmt_event_hub/event_hubs.rb
|
95
|
+
- lib/generated/azure_mgmt_event_hub/models/access_keys.rb
|
95
96
|
- lib/generated/azure_mgmt_event_hub/models/access_rights.rb
|
96
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
97
|
+
- lib/generated/azure_mgmt_event_hub/models/authorization_rule.rb
|
98
|
+
- lib/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb
|
99
|
+
- lib/generated/azure_mgmt_event_hub/models/capture_description.rb
|
100
|
+
- lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb
|
101
|
+
- lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb
|
102
|
+
- lib/generated/azure_mgmt_event_hub/models/consumer_group.rb
|
97
103
|
- lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb
|
98
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
104
|
+
- lib/generated/azure_mgmt_event_hub/models/destination.rb
|
105
|
+
- lib/generated/azure_mgmt_event_hub/models/ehnamespace.rb
|
106
|
+
- lib/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb
|
107
|
+
- lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb
|
99
108
|
- lib/generated/azure_mgmt_event_hub/models/entity_status.rb
|
100
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
109
|
+
- lib/generated/azure_mgmt_event_hub/models/error_response.rb
|
101
110
|
- lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb
|
102
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
103
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
104
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
105
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
106
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
107
|
-
- lib/generated/azure_mgmt_event_hub/models/
|
108
|
-
- lib/generated/azure_mgmt_event_hub/models/resource_list_keys.rb
|
109
|
-
- lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb
|
110
|
-
- lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb
|
111
|
-
- lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb
|
111
|
+
- lib/generated/azure_mgmt_event_hub/models/eventhub.rb
|
112
|
+
- lib/generated/azure_mgmt_event_hub/models/key_type.rb
|
113
|
+
- lib/generated/azure_mgmt_event_hub/models/operation.rb
|
114
|
+
- lib/generated/azure_mgmt_event_hub/models/operation_display.rb
|
115
|
+
- lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb
|
116
|
+
- lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb
|
112
117
|
- lib/generated/azure_mgmt_event_hub/models/sku.rb
|
113
118
|
- lib/generated/azure_mgmt_event_hub/models/sku_name.rb
|
114
119
|
- lib/generated/azure_mgmt_event_hub/models/sku_tier.rb
|
120
|
+
- lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb
|
121
|
+
- lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb
|
115
122
|
- lib/generated/azure_mgmt_event_hub/module_definition.rb
|
116
123
|
- lib/generated/azure_mgmt_event_hub/namespaces.rb
|
124
|
+
- lib/generated/azure_mgmt_event_hub/operations.rb
|
117
125
|
- lib/generated/azure_mgmt_event_hub/version.rb
|
118
126
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
119
127
|
licenses:
|
@@ -1,122 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::EventHub
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Description of the consumer group resource.
|
10
|
-
#
|
11
|
-
class ConsumerGroupResource < MsRestAzure::Resource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [DateTime] Exact time the message was created.
|
16
|
-
attr_accessor :created_at
|
17
|
-
|
18
|
-
# @return [String] The path of the Event Hub.
|
19
|
-
attr_accessor :event_hub_path
|
20
|
-
|
21
|
-
# @return [DateTime] The exact time the message was updated.
|
22
|
-
attr_accessor :updated_at
|
23
|
-
|
24
|
-
# @return [String] The user metadata.
|
25
|
-
attr_accessor :user_metadata
|
26
|
-
|
27
|
-
|
28
|
-
#
|
29
|
-
# Mapper for ConsumerGroupResource class as Ruby Hash.
|
30
|
-
# This will be used for serialization/deserialization.
|
31
|
-
#
|
32
|
-
def self.mapper()
|
33
|
-
{
|
34
|
-
required: false,
|
35
|
-
serialized_name: 'ConsumerGroupResource',
|
36
|
-
type: {
|
37
|
-
name: 'Composite',
|
38
|
-
class_name: 'ConsumerGroupResource',
|
39
|
-
model_properties: {
|
40
|
-
id: {
|
41
|
-
required: false,
|
42
|
-
read_only: true,
|
43
|
-
serialized_name: 'id',
|
44
|
-
type: {
|
45
|
-
name: 'String'
|
46
|
-
}
|
47
|
-
},
|
48
|
-
name: {
|
49
|
-
required: false,
|
50
|
-
read_only: true,
|
51
|
-
serialized_name: 'name',
|
52
|
-
type: {
|
53
|
-
name: 'String'
|
54
|
-
}
|
55
|
-
},
|
56
|
-
type: {
|
57
|
-
required: false,
|
58
|
-
read_only: true,
|
59
|
-
serialized_name: 'type',
|
60
|
-
type: {
|
61
|
-
name: 'String'
|
62
|
-
}
|
63
|
-
},
|
64
|
-
location: {
|
65
|
-
required: true,
|
66
|
-
serialized_name: 'location',
|
67
|
-
type: {
|
68
|
-
name: 'String'
|
69
|
-
}
|
70
|
-
},
|
71
|
-
tags: {
|
72
|
-
required: false,
|
73
|
-
serialized_name: 'tags',
|
74
|
-
type: {
|
75
|
-
name: 'Dictionary',
|
76
|
-
value: {
|
77
|
-
required: false,
|
78
|
-
serialized_name: 'StringElementType',
|
79
|
-
type: {
|
80
|
-
name: 'String'
|
81
|
-
}
|
82
|
-
}
|
83
|
-
}
|
84
|
-
},
|
85
|
-
created_at: {
|
86
|
-
required: false,
|
87
|
-
read_only: true,
|
88
|
-
serialized_name: 'properties.createdAt',
|
89
|
-
type: {
|
90
|
-
name: 'DateTime'
|
91
|
-
}
|
92
|
-
},
|
93
|
-
event_hub_path: {
|
94
|
-
required: false,
|
95
|
-
read_only: true,
|
96
|
-
serialized_name: 'properties.eventHubPath',
|
97
|
-
type: {
|
98
|
-
name: 'String'
|
99
|
-
}
|
100
|
-
},
|
101
|
-
updated_at: {
|
102
|
-
required: false,
|
103
|
-
read_only: true,
|
104
|
-
serialized_name: 'properties.updatedAt',
|
105
|
-
type: {
|
106
|
-
name: 'DateTime'
|
107
|
-
}
|
108
|
-
},
|
109
|
-
user_metadata: {
|
110
|
-
required: false,
|
111
|
-
serialized_name: 'properties.userMetadata',
|
112
|
-
type: {
|
113
|
-
name: 'String'
|
114
|
-
}
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
@@ -1,139 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::EventHub
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Parameters supplied to the Create Or Update Event Hub operation.
|
10
|
-
#
|
11
|
-
class EventHubCreateOrUpdateParameters
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Location of the resource.
|
16
|
-
attr_accessor :location
|
17
|
-
|
18
|
-
# @return [String] ARM type of the namespace.
|
19
|
-
attr_accessor :type
|
20
|
-
|
21
|
-
# @return [String] Name of the Event Hub.
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
|
-
# @return [DateTime] Exact time the Event Hub was created.
|
25
|
-
attr_accessor :created_at
|
26
|
-
|
27
|
-
# @return [Integer] Number of days to retain the events for this Event
|
28
|
-
# Hub.
|
29
|
-
attr_accessor :message_retention_in_days
|
30
|
-
|
31
|
-
# @return [Integer] Number of partitions created for the Event Hub.
|
32
|
-
attr_accessor :partition_count
|
33
|
-
|
34
|
-
# @return [Array<String>] Current number of shards on the Event Hub.
|
35
|
-
attr_accessor :partition_ids
|
36
|
-
|
37
|
-
# @return [EntityStatus] Enumerates the possible values for the status of
|
38
|
-
# the Event Hub. Possible values include: 'Active', 'Disabled',
|
39
|
-
# 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
|
40
|
-
# 'Renaming', 'Unknown'
|
41
|
-
attr_accessor :status
|
42
|
-
|
43
|
-
# @return [DateTime] The exact time the message was updated.
|
44
|
-
attr_accessor :updated_at
|
45
|
-
|
46
|
-
|
47
|
-
#
|
48
|
-
# Mapper for EventHubCreateOrUpdateParameters class as Ruby Hash.
|
49
|
-
# This will be used for serialization/deserialization.
|
50
|
-
#
|
51
|
-
def self.mapper()
|
52
|
-
{
|
53
|
-
required: false,
|
54
|
-
serialized_name: 'EventHubCreateOrUpdateParameters',
|
55
|
-
type: {
|
56
|
-
name: 'Composite',
|
57
|
-
class_name: 'EventHubCreateOrUpdateParameters',
|
58
|
-
model_properties: {
|
59
|
-
location: {
|
60
|
-
required: true,
|
61
|
-
serialized_name: 'location',
|
62
|
-
type: {
|
63
|
-
name: 'String'
|
64
|
-
}
|
65
|
-
},
|
66
|
-
type: {
|
67
|
-
required: false,
|
68
|
-
serialized_name: 'type',
|
69
|
-
type: {
|
70
|
-
name: 'String'
|
71
|
-
}
|
72
|
-
},
|
73
|
-
name: {
|
74
|
-
required: false,
|
75
|
-
serialized_name: 'name',
|
76
|
-
type: {
|
77
|
-
name: 'String'
|
78
|
-
}
|
79
|
-
},
|
80
|
-
created_at: {
|
81
|
-
required: false,
|
82
|
-
read_only: true,
|
83
|
-
serialized_name: 'properties.createdAt',
|
84
|
-
type: {
|
85
|
-
name: 'DateTime'
|
86
|
-
}
|
87
|
-
},
|
88
|
-
message_retention_in_days: {
|
89
|
-
required: false,
|
90
|
-
serialized_name: 'properties.messageRetentionInDays',
|
91
|
-
type: {
|
92
|
-
name: 'Number'
|
93
|
-
}
|
94
|
-
},
|
95
|
-
partition_count: {
|
96
|
-
required: false,
|
97
|
-
serialized_name: 'properties.partitionCount',
|
98
|
-
type: {
|
99
|
-
name: 'Number'
|
100
|
-
}
|
101
|
-
},
|
102
|
-
partition_ids: {
|
103
|
-
required: false,
|
104
|
-
read_only: true,
|
105
|
-
serialized_name: 'properties.partitionIds',
|
106
|
-
type: {
|
107
|
-
name: 'Sequence',
|
108
|
-
element: {
|
109
|
-
required: false,
|
110
|
-
serialized_name: 'StringElementType',
|
111
|
-
type: {
|
112
|
-
name: 'String'
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
116
|
-
},
|
117
|
-
status: {
|
118
|
-
required: false,
|
119
|
-
serialized_name: 'properties.status',
|
120
|
-
type: {
|
121
|
-
name: 'Enum',
|
122
|
-
module: 'EntityStatus'
|
123
|
-
}
|
124
|
-
},
|
125
|
-
updated_at: {
|
126
|
-
required: false,
|
127
|
-
read_only: true,
|
128
|
-
serialized_name: 'properties.updatedAt',
|
129
|
-
type: {
|
130
|
-
name: 'DateTime'
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|