azure_mgmt_event_grid 0.17.5 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  3. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +28 -0
  4. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb +2 -0
  5. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  6. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb +16 -0
  7. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  8. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +28 -0
  9. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +2 -0
  10. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  11. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +18 -0
  12. data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  13. data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +28 -0
  14. data/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb +2 -0
  15. data/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  16. data/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb +18 -0
  17. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  18. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +28 -0
  19. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/operations.rb +2 -0
  20. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  21. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/topics.rb +18 -0
  22. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/domain_topics.rb +4 -0
  23. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/domains.rb +16 -0
  24. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  25. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +30 -0
  26. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +2 -0
  27. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  28. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +18 -0
  29. data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  30. data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +28 -0
  31. data/lib/2019-01-01/generated/azure_mgmt_event_grid/operations.rb +2 -0
  32. data/lib/2019-01-01/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  33. data/lib/2019-01-01/generated/azure_mgmt_event_grid/topics.rb +18 -0
  34. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +10 -0
  35. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domains.rb +20 -0
  36. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  37. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +50 -0
  38. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/operations.rb +2 -0
  39. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +6 -0
  40. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topics.rb +22 -0
  41. data/lib/2019-06-01/generated/azure_mgmt_event_grid.rb +87 -0
  42. data/lib/2019-06-01/generated/azure_mgmt_event_grid/domain_topics.rb +699 -0
  43. data/lib/2019-06-01/generated/azure_mgmt_event_grid/domains.rb +1328 -0
  44. data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +153 -0
  45. data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +3648 -0
  46. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -0
  47. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -0
  48. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -0
  49. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain.rb +112 -0
  50. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -0
  51. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -0
  52. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -0
  53. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -0
  54. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -0
  55. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -0
  56. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -0
  57. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -0
  58. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -0
  59. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +176 -0
  60. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +50 -0
  61. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -0
  62. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -0
  63. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -0
  64. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +124 -0
  65. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -0
  66. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_type.rb +106 -0
  67. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -0
  68. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -0
  69. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -0
  70. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -0
  71. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -0
  72. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -0
  73. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -0
  74. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -0
  75. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -0
  76. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -0
  77. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -0
  78. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -0
  79. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -0
  80. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -0
  81. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -0
  82. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -0
  83. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -0
  84. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -0
  85. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -0
  86. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -0
  87. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -0
  88. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -0
  89. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -0
  90. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -0
  91. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -0
  92. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -0
  93. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -0
  94. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -0
  95. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -0
  96. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -0
  97. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -0
  98. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -0
  99. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -0
  100. data/lib/2019-06-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
  101. data/lib/2019-06-01/generated/azure_mgmt_event_grid/operations.rb +118 -0
  102. data/lib/2019-06-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -0
  103. data/lib/2019-06-01/generated/azure_mgmt_event_grid/topics.rb +1439 -0
  104. data/lib/azure_mgmt_event_grid.rb +1 -0
  105. data/lib/profiles/latest/modules/eventgrid_profile_module.rb +135 -159
  106. data/lib/version.rb +1 -1
  107. metadata +68 -5
@@ -0,0 +1,50 @@
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::EventGrid::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Information about the destination for an event subscription
10
+ #
11
+ class EventSubscriptionDestination
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["WebHook"] = "WebHookEventSubscriptionDestination"
17
+ @@discriminatorMap["EventHub"] = "EventHubEventSubscriptionDestination"
18
+ @@discriminatorMap["StorageQueue"] = "StorageQueueEventSubscriptionDestination"
19
+ @@discriminatorMap["HybridConnection"] = "HybridConnectionEventSubscriptionDestination"
20
+ @@discriminatorMap["ServiceBusQueue"] = "ServiceBusQueueEventSubscriptionDestination"
21
+
22
+ def initialize
23
+ @endpointType = "EventSubscriptionDestination"
24
+ end
25
+
26
+ attr_accessor :endpointType
27
+
28
+
29
+ #
30
+ # Mapper for EventSubscriptionDestination class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'EventSubscriptionDestination',
38
+ type: {
39
+ name: 'Composite',
40
+ polymorphic_discriminator: 'endpointType',
41
+ uber_parent: 'EventSubscriptionDestination',
42
+ class_name: 'EventSubscriptionDestination',
43
+ model_properties: {
44
+ }
45
+ }
46
+ }
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,120 @@
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::EventGrid::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Filter for the Event Subscription.
10
+ #
11
+ class EventSubscriptionFilter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] An optional string to filter events for an event
16
+ # subscription based on a resource path prefix.
17
+ # The format of this depends on the publisher of the events.
18
+ # Wildcard characters are not supported in this path.
19
+ attr_accessor :subject_begins_with
20
+
21
+ # @return [String] An optional string to filter events for an event
22
+ # subscription based on a resource path suffix.
23
+ # Wildcard characters are not supported in this path.
24
+ attr_accessor :subject_ends_with
25
+
26
+ # @return [Array<String>] A list of applicable event types that need to
27
+ # be part of the event subscription. If it is desired to subscribe to all
28
+ # default event types, set the IncludedEventTypes to null.
29
+ attr_accessor :included_event_types
30
+
31
+ # @return [Boolean] Specifies if the SubjectBeginsWith and
32
+ # SubjectEndsWith properties of the filter
33
+ # should be compared in a case sensitive manner. Default value: false .
34
+ attr_accessor :is_subject_case_sensitive
35
+
36
+ # @return [Array<AdvancedFilter>] An array of advanced filters that are
37
+ # used for filtering event subscriptions.
38
+ attr_accessor :advanced_filters
39
+
40
+
41
+ #
42
+ # Mapper for EventSubscriptionFilter class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'EventSubscriptionFilter',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'EventSubscriptionFilter',
53
+ model_properties: {
54
+ subject_begins_with: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'subjectBeginsWith',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ subject_ends_with: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'subjectEndsWith',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ included_event_types: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'includedEventTypes',
74
+ type: {
75
+ name: 'Sequence',
76
+ element: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'StringElementType',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ is_subject_case_sensitive: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'isSubjectCaseSensitive',
90
+ default_value: false,
91
+ type: {
92
+ name: 'Boolean'
93
+ }
94
+ },
95
+ advanced_filters: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'advancedFilters',
99
+ type: {
100
+ name: 'Sequence',
101
+ element: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'AdvancedFilterElementType',
105
+ type: {
106
+ name: 'Composite',
107
+ polymorphic_discriminator: 'operatorType',
108
+ uber_parent: 'AdvancedFilter',
109
+ class_name: 'AdvancedFilter'
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,47 @@
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::EventGrid::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Full endpoint url of an event subscription
10
+ #
11
+ class EventSubscriptionFullUrl
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The URL that represents the endpoint of the
16
+ # destination of an event subscription.
17
+ attr_accessor :endpoint_url
18
+
19
+
20
+ #
21
+ # Mapper for EventSubscriptionFullUrl class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'EventSubscriptionFullUrl',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'EventSubscriptionFullUrl',
32
+ model_properties: {
33
+ endpoint_url: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'endpointUrl',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,21 @@
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::EventGrid::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for EventSubscriptionProvisioningState
10
+ #
11
+ module EventSubscriptionProvisioningState
12
+ Creating = "Creating"
13
+ Updating = "Updating"
14
+ Deleting = "Deleting"
15
+ Succeeded = "Succeeded"
16
+ Canceled = "Canceled"
17
+ Failed = "Failed"
18
+ AwaitingManualAction = "AwaitingManualAction"
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,124 @@
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::EventGrid::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Properties of the Event Subscription update
10
+ #
11
+ class EventSubscriptionUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [EventSubscriptionDestination] Information about the
16
+ # destination where events have to be delivered for the event
17
+ # subscription.
18
+ attr_accessor :destination
19
+
20
+ # @return [EventSubscriptionFilter] Information about the filter for the
21
+ # event subscription.
22
+ attr_accessor :filter
23
+
24
+ # @return [Array<String>] List of user defined labels.
25
+ attr_accessor :labels
26
+
27
+ # @return [DateTime] Information about the expiration time for the event
28
+ # subscription.
29
+ attr_accessor :expiration_time_utc
30
+
31
+ # @return [RetryPolicy] The retry policy for events. This can be used to
32
+ # configure maximum number of delivery attempts and time to live for
33
+ # events.
34
+ attr_accessor :retry_policy
35
+
36
+ # @return [DeadLetterDestination] The DeadLetter destination of the event
37
+ # subscription.
38
+ attr_accessor :dead_letter_destination
39
+
40
+
41
+ #
42
+ # Mapper for EventSubscriptionUpdateParameters class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'EventSubscriptionUpdateParameters',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'EventSubscriptionUpdateParameters',
53
+ model_properties: {
54
+ destination: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'destination',
58
+ type: {
59
+ name: 'Composite',
60
+ polymorphic_discriminator: 'endpointType',
61
+ uber_parent: 'EventSubscriptionDestination',
62
+ class_name: 'EventSubscriptionDestination'
63
+ }
64
+ },
65
+ filter: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'filter',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'EventSubscriptionFilter'
72
+ }
73
+ },
74
+ labels: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'labels',
78
+ type: {
79
+ name: 'Sequence',
80
+ element: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'StringElementType',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ },
90
+ expiration_time_utc: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'expirationTimeUtc',
94
+ type: {
95
+ name: 'DateTime'
96
+ }
97
+ },
98
+ retry_policy: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'retryPolicy',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'RetryPolicy'
105
+ }
106
+ },
107
+ dead_letter_destination: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'deadLetterDestination',
111
+ type: {
112
+ name: 'Composite',
113
+ polymorphic_discriminator: 'endpointType',
114
+ uber_parent: 'DeadLetterDestination',
115
+ class_name: 'DeadLetterDestination'
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,98 @@
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::EventGrid::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Result of the List EventSubscriptions operation
10
+ #
11
+ class EventSubscriptionsListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<EventSubscription>] A collection of EventSubscriptions
17
+ attr_accessor :value
18
+
19
+ # @return [String] A link for the next page of event subscriptions
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<EventSubscription>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [EventSubscriptionsListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for EventSubscriptionsListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'EventSubscriptionsListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'EventSubscriptionsListResult',
66
+ model_properties: {
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'value',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'EventSubscriptionElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'EventSubscription'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ next_link: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'nextLink',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end