azure_mgmt_event_hub 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +7 -6
  3. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +111 -0
  4. data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +11 -6
  5. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +36 -8
  6. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +11 -6
  7. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +36 -8
  8. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +12 -0
  9. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb +134 -0
  10. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +98 -0
  11. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb +101 -0
  12. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +60 -0
  13. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +99 -0
  14. data/lib/2017-04-01/generated/azure_mgmt_event_hub/regions.rb +224 -0
  15. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +51 -0
  16. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +503 -0
  17. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +257 -0
  18. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub2018preview_management_client.rb +145 -0
  19. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +136 -0
  20. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb +100 -0
  21. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_quota_configuration_properties.rb +56 -0
  22. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_sku.rb +64 -0
  23. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +212 -0
  24. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +99 -0
  25. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +58 -0
  26. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule.rb +96 -0
  27. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb +100 -0
  28. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ipaction.rb +16 -0
  29. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation.rb +59 -0
  30. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_display.rb +72 -0
  31. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_list_result.rb +103 -0
  32. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +71 -0
  33. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb +75 -0
  34. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_name.rb +16 -0
  35. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_tier.rb +16 -0
  36. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +92 -0
  37. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule.rb +73 -0
  38. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb +100 -0
  39. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  40. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +2006 -0
  41. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/operations.rb +216 -0
  42. data/lib/azure_mgmt_event_hub.rb +2 -1
  43. data/lib/profiles/latest/modules/eventhub_profile_module.rb +61 -111
  44. data/lib/version.rb +1 -1
  45. metadata +37 -5
@@ -0,0 +1,58 @@
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::EventHub::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Error response that indicates the 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
+ # @return [String] Error code.
17
+ attr_accessor :code
18
+
19
+ # @return [String] Error message indicating why the operation failed.
20
+ attr_accessor :message
21
+
22
+
23
+ #
24
+ # Mapper for ErrorResponse class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ErrorResponse',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ErrorResponse',
35
+ model_properties: {
36
+ code: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'code',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ message: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'message',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,96 @@
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::EventHub::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Single item in a List or Get IpFilterRules operation
10
+ #
11
+ class IpFilterRule < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] IP Mask
16
+ attr_accessor :ip_mask
17
+
18
+ # @return [IPAction] The IP Filter Action. Possible values include:
19
+ # 'Accept', 'Reject'
20
+ attr_accessor :action
21
+
22
+ # @return [String] IP Filter name
23
+ attr_accessor :filter_name
24
+
25
+
26
+ #
27
+ # Mapper for IpFilterRule class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'IpFilterRule',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'IpFilterRule',
38
+ model_properties: {
39
+ id: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ name: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ ip_mask: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'properties.ipMask',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ action: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'properties.action',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ filter_name: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'properties.filterName',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,100 @@
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::EventHub::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # The response from the List namespace operation.
10
+ #
11
+ class IpFilterRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<IpFilterRule>] Result of the List IpFilter Rules
17
+ # operation.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Link to the next set of results. Not empty if Value
21
+ # contains an incomplete list of IpFilter Rules
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<IpFilterRule>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [IpFilterRuleListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for IpFilterRuleListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'IpFilterRuleListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'IpFilterRuleListResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'IpFilterRuleElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'IpFilterRule'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,16 @@
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::EventHub::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for IPAction
10
+ #
11
+ module IPAction
12
+ Accept = "Accept"
13
+ Reject = "Reject"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,59 @@
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::EventHub::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # A Event Hub REST API operation
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'Operation',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Operation',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ display: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'display',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'OperationDisplay'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,72 @@
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::EventHub::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # The object that represents the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service provider: Microsoft.EventHub
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed: Invoice,
19
+ # etc.
20
+ attr_accessor :resource
21
+
22
+ # @return [String] Operation type: Read, write, delete, etc.
23
+ attr_accessor :operation
24
+
25
+
26
+ #
27
+ # Mapper for OperationDisplay class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'Operation_display',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'OperationDisplay',
38
+ model_properties: {
39
+ provider: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'provider',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ resource: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'resource',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ operation: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'operation',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,103 @@
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::EventHub::Mgmt::V2018_01_01_preview
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
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'OperationListResult',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'OperationListResult',
69
+ model_properties: {
70
+ value: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'value',
75
+ type: {
76
+ name: 'Sequence',
77
+ element: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'OperationElementType',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'Operation'
84
+ }
85
+ }
86
+ }
87
+ },
88
+ next_link: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'nextLink',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ end
101
+ end
102
+ end
103
+ end