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,56 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Error reponse indicates EventHub service is not able to process the
|
10
|
+
# incoming request. The reason is provided in the error message.
|
11
|
+
#
|
12
|
+
class ErrorResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [String] Error code.
|
18
|
+
attr_accessor :code
|
19
|
+
|
20
|
+
# @return [String] Error message indicating why the operation failed.
|
21
|
+
attr_accessor :message
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'ErrorResponse',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'ErrorResponse',
|
35
|
+
model_properties: {
|
36
|
+
code: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'code',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
message: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'message',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -1,23 +1,23 @@
|
|
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
7
|
module Models
|
8
8
|
#
|
9
|
-
# The
|
9
|
+
# The result of the List EventHubs operation.
|
10
10
|
#
|
11
11
|
class EventHubListResult
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
|
16
|
-
# operation.
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Eventhub>] Result of the List EventHubs operation.
|
17
17
|
attr_accessor :value
|
18
18
|
|
19
19
|
# @return [String] Link to the next set of results. Not empty if Value
|
20
|
-
# contains incomplete list of
|
20
|
+
# contains incomplete list of EventHubs.
|
21
21
|
attr_accessor :next_link
|
22
22
|
|
23
23
|
# return [Proc] with next page method call.
|
@@ -26,7 +26,7 @@ module Azure::ARM::EventHub
|
|
26
26
|
#
|
27
27
|
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
28
|
#
|
29
|
-
# @return [Array<
|
29
|
+
# @return [Array<Eventhub>] operation results.
|
30
30
|
#
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
@@ -71,10 +71,10 @@ module Azure::ARM::EventHub
|
|
71
71
|
name: 'Sequence',
|
72
72
|
element: {
|
73
73
|
required: false,
|
74
|
-
serialized_name: '
|
74
|
+
serialized_name: 'EventhubElementType',
|
75
75
|
type: {
|
76
76
|
name: 'Composite',
|
77
|
-
class_name: '
|
77
|
+
class_name: 'Eventhub'
|
78
78
|
}
|
79
79
|
}
|
80
80
|
}
|
@@ -1,51 +1,56 @@
|
|
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
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Single item in List or Get Event Hub operation
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class Eventhub < MsRestAzure::Resource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<String>] Current number of shards on the Event Hub.
|
17
|
+
attr_accessor :partition_ids
|
18
|
+
|
15
19
|
# @return [DateTime] Exact time the Event Hub was created.
|
16
20
|
attr_accessor :created_at
|
17
21
|
|
22
|
+
# @return [DateTime] The exact time the message was updated.
|
23
|
+
attr_accessor :updated_at
|
24
|
+
|
18
25
|
# @return [Integer] Number of days to retain the events for this Event
|
19
|
-
# Hub
|
26
|
+
# Hub, value should be 1 to 7 days
|
20
27
|
attr_accessor :message_retention_in_days
|
21
28
|
|
22
|
-
# @return [Integer] Number of partitions created for the Event Hub
|
29
|
+
# @return [Integer] Number of partitions created for the Event Hub,
|
30
|
+
# allowed values are from 1 to 32 partitions.
|
23
31
|
attr_accessor :partition_count
|
24
32
|
|
25
|
-
# @return [Array<String>] Current number of shards on the Event Hub.
|
26
|
-
attr_accessor :partition_ids
|
27
|
-
|
28
33
|
# @return [EntityStatus] Enumerates the possible values for the status of
|
29
34
|
# the Event Hub. Possible values include: 'Active', 'Disabled',
|
30
35
|
# 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
|
31
36
|
# 'Renaming', 'Unknown'
|
32
37
|
attr_accessor :status
|
33
38
|
|
34
|
-
# @return [
|
35
|
-
attr_accessor :
|
39
|
+
# @return [CaptureDescription] Properties of capture description
|
40
|
+
attr_accessor :capture_description
|
36
41
|
|
37
42
|
|
38
43
|
#
|
39
|
-
# Mapper for
|
44
|
+
# Mapper for Eventhub class as Ruby Hash.
|
40
45
|
# This will be used for serialization/deserialization.
|
41
46
|
#
|
42
47
|
def self.mapper()
|
43
48
|
{
|
44
49
|
required: false,
|
45
|
-
serialized_name: '
|
50
|
+
serialized_name: 'Eventhub',
|
46
51
|
type: {
|
47
52
|
name: 'Composite',
|
48
|
-
class_name: '
|
53
|
+
class_name: 'Eventhub',
|
49
54
|
model_properties: {
|
50
55
|
id: {
|
51
56
|
required: false,
|
@@ -71,19 +76,13 @@ module Azure::ARM::EventHub
|
|
71
76
|
name: 'String'
|
72
77
|
}
|
73
78
|
},
|
74
|
-
|
75
|
-
required: true,
|
76
|
-
serialized_name: 'location',
|
77
|
-
type: {
|
78
|
-
name: 'String'
|
79
|
-
}
|
80
|
-
},
|
81
|
-
tags: {
|
79
|
+
partition_ids: {
|
82
80
|
required: false,
|
83
|
-
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'properties.partitionIds',
|
84
83
|
type: {
|
85
|
-
name: '
|
86
|
-
|
84
|
+
name: 'Sequence',
|
85
|
+
element: {
|
87
86
|
required: false,
|
88
87
|
serialized_name: 'StringElementType',
|
89
88
|
type: {
|
@@ -100,9 +99,21 @@ module Azure::ARM::EventHub
|
|
100
99
|
name: 'DateTime'
|
101
100
|
}
|
102
101
|
},
|
102
|
+
updated_at: {
|
103
|
+
required: false,
|
104
|
+
read_only: true,
|
105
|
+
serialized_name: 'properties.updatedAt',
|
106
|
+
type: {
|
107
|
+
name: 'DateTime'
|
108
|
+
}
|
109
|
+
},
|
103
110
|
message_retention_in_days: {
|
104
111
|
required: false,
|
105
112
|
serialized_name: 'properties.messageRetentionInDays',
|
113
|
+
constraints: {
|
114
|
+
InclusiveMaximum: 7,
|
115
|
+
InclusiveMinimum: 1
|
116
|
+
},
|
106
117
|
type: {
|
107
118
|
name: 'Number'
|
108
119
|
}
|
@@ -110,25 +121,14 @@ module Azure::ARM::EventHub
|
|
110
121
|
partition_count: {
|
111
122
|
required: false,
|
112
123
|
serialized_name: 'properties.partitionCount',
|
124
|
+
constraints: {
|
125
|
+
InclusiveMaximum: 32,
|
126
|
+
InclusiveMinimum: 1
|
127
|
+
},
|
113
128
|
type: {
|
114
129
|
name: 'Number'
|
115
130
|
}
|
116
131
|
},
|
117
|
-
partition_ids: {
|
118
|
-
required: false,
|
119
|
-
read_only: true,
|
120
|
-
serialized_name: 'properties.partitionIds',
|
121
|
-
type: {
|
122
|
-
name: 'Sequence',
|
123
|
-
element: {
|
124
|
-
required: false,
|
125
|
-
serialized_name: 'StringElementType',
|
126
|
-
type: {
|
127
|
-
name: 'String'
|
128
|
-
}
|
129
|
-
}
|
130
|
-
}
|
131
|
-
},
|
132
132
|
status: {
|
133
133
|
required: false,
|
134
134
|
serialized_name: 'properties.status',
|
@@ -137,12 +137,12 @@ module Azure::ARM::EventHub
|
|
137
137
|
module: 'EntityStatus'
|
138
138
|
}
|
139
139
|
},
|
140
|
-
|
140
|
+
capture_description: {
|
141
141
|
required: false,
|
142
|
-
|
143
|
-
serialized_name: 'properties.updatedAt',
|
142
|
+
serialized_name: 'properties.captureDescription',
|
144
143
|
type: {
|
145
|
-
name: '
|
144
|
+
name: 'Composite',
|
145
|
+
class_name: 'CaptureDescription'
|
146
146
|
}
|
147
147
|
}
|
148
148
|
}
|
@@ -1,14 +1,14 @@
|
|
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
7
|
module Models
|
8
8
|
#
|
9
|
-
# Defines values for
|
9
|
+
# Defines values for KeyType
|
10
10
|
#
|
11
|
-
module
|
11
|
+
module KeyType
|
12
12
|
PrimaryKey = "PrimaryKey"
|
13
13
|
SecondaryKey = "SecondaryKey"
|
14
14
|
end
|
@@ -0,0 +1,57 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# A Event Hub REST API operation
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [OperationDisplay] The object that represents the operation.
|
20
|
+
attr_accessor :display
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for Operation class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Operation',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Operation',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
required: false,
|
37
|
+
read_only: true,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'display',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'OperationDisplay'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that represents the operation.
|
10
|
+
#
|
11
|
+
class OperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] Service provider: Microsoft.EventHub
|
17
|
+
attr_accessor :provider
|
18
|
+
|
19
|
+
# @return [String] Resource on which the operation is performed: Invoice,
|
20
|
+
# etc.
|
21
|
+
attr_accessor :resource
|
22
|
+
|
23
|
+
# @return [String] Operation type: Read, write, delete, etc.
|
24
|
+
attr_accessor :operation
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for OperationDisplay class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Operation_display',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'OperationDisplay',
|
38
|
+
model_properties: {
|
39
|
+
provider: {
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'provider',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
resource: {
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'resource',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
operation: {
|
56
|
+
required: false,
|
57
|
+
read_only: true,
|
58
|
+
serialized_name: 'operation',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,99 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list Event Hub operations. It contains a list of
|
10
|
+
# operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Operation>] List of Event Hub operations supported by
|
18
|
+
# the Microsoft.EventHub resource provider.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] URL to get the next set of operation list results if
|
22
|
+
# there are any.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<Operation>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [OperationListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'OperationListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'OperationListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'OperationElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'Operation'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'nextLink',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|