azure_mgmt_event_grid 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_event_grid.rb +6 -0
  4. data/lib/generated/azure_mgmt_event_grid.rb +57 -0
  5. data/lib/generated/azure_mgmt_event_grid/event_grid_management_client.rb +143 -0
  6. data/lib/generated/azure_mgmt_event_grid/event_subscriptions.rb +1803 -0
  7. data/lib/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +59 -0
  8. data/lib/generated/azure_mgmt_event_grid/models/event_subscription.rb +126 -0
  9. data/lib/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +46 -0
  10. data/lib/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +92 -0
  11. data/lib/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +45 -0
  12. data/lib/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -0
  13. data/lib/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +78 -0
  14. data/lib/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +52 -0
  15. data/lib/generated/azure_mgmt_event_grid/models/event_type.rb +88 -0
  16. data/lib/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +52 -0
  17. data/lib/generated/azure_mgmt_event_grid/models/operation.rb +76 -0
  18. data/lib/generated/azure_mgmt_event_grid/models/operation_info.rb +74 -0
  19. data/lib/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -0
  20. data/lib/generated/azure_mgmt_event_grid/models/operations_list_result.rb +52 -0
  21. data/lib/generated/azure_mgmt_event_grid/models/resource.rb +67 -0
  22. data/lib/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -0
  23. data/lib/generated/azure_mgmt_event_grid/models/topic.rb +103 -0
  24. data/lib/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -0
  25. data/lib/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +44 -0
  26. data/lib/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +54 -0
  27. data/lib/generated/azure_mgmt_event_grid/models/topic_type_info.rb +128 -0
  28. data/lib/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -0
  29. data/lib/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +52 -0
  30. data/lib/generated/azure_mgmt_event_grid/models/topics_list_result.rb +52 -0
  31. data/lib/generated/azure_mgmt_event_grid/models/tracked_resource.rb +85 -0
  32. data/lib/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +71 -0
  33. data/lib/generated/azure_mgmt_event_grid/module_definition.rb +8 -0
  34. data/lib/generated/azure_mgmt_event_grid/operations.rb +115 -0
  35. data/lib/generated/azure_mgmt_event_grid/topic_types.rb +296 -0
  36. data/lib/generated/azure_mgmt_event_grid/topics.rb +926 -0
  37. data/lib/generated/azure_mgmt_event_grid/version.rb +8 -0
  38. metadata +149 -0
@@ -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::ARM::EventGrid
7
+ module Models
8
+ #
9
+ # Information about the event hub destination for an event subscription
10
+ #
11
+ class EventHubEventSubscriptionDestination < EventSubscriptionDestination
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @endpointType = "EventHub"
18
+ end
19
+
20
+ attr_accessor :endpointType
21
+
22
+ # @return [String] The Azure Resource Id that represents the endpoint of
23
+ # an Event Hub destination of an event subscription.
24
+ attr_accessor :resource_id
25
+
26
+
27
+ #
28
+ # Mapper for EventHubEventSubscriptionDestination class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'EventHub',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'EventHubEventSubscriptionDestination',
38
+ model_properties: {
39
+ endpointType: {
40
+ required: true,
41
+ serialized_name: 'endpointType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ resource_id: {
47
+ required: false,
48
+ serialized_name: 'properties.resourceId',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,126 @@
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::ARM::EventGrid
7
+ module Models
8
+ #
9
+ # Event Subscription
10
+ #
11
+ class EventSubscription < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the topic of the event subscription.
16
+ attr_accessor :topic
17
+
18
+ # @return [EventSubscriptionProvisioningState] Provisioning state of the
19
+ # event subscription. Possible values include: 'Creating', 'Updating',
20
+ # 'Deleting', 'Succeeded', 'Canceled', 'Failed'
21
+ attr_accessor :provisioning_state
22
+
23
+ # @return [EventSubscriptionDestination] Information about the
24
+ # destination where events have to be delivered for the event
25
+ # subscription.
26
+ attr_accessor :destination
27
+
28
+ # @return [EventSubscriptionFilter] Information about the filter for the
29
+ # event subscription.
30
+ attr_accessor :filter
31
+
32
+ # @return [Array<String>] List of user defined labels.
33
+ attr_accessor :labels
34
+
35
+
36
+ #
37
+ # Mapper for EventSubscription class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'EventSubscription',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'EventSubscription',
47
+ model_properties: {
48
+ id: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ name: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'type',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ topic: {
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'properties.topic',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ provisioning_state: {
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'properties.provisioningState',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ destination: {
89
+ required: false,
90
+ serialized_name: 'properties.destination',
91
+ type: {
92
+ name: 'Composite',
93
+ polymorphic_discriminator: 'endpointType',
94
+ uber_parent: 'EventSubscriptionDestination',
95
+ class_name: 'EventSubscriptionDestination'
96
+ }
97
+ },
98
+ filter: {
99
+ required: false,
100
+ serialized_name: 'properties.filter',
101
+ type: {
102
+ name: 'Composite',
103
+ class_name: 'EventSubscriptionFilter'
104
+ }
105
+ },
106
+ labels: {
107
+ required: false,
108
+ serialized_name: 'properties.labels',
109
+ type: {
110
+ name: 'Sequence',
111
+ element: {
112
+ required: false,
113
+ serialized_name: 'StringElementType',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,46 @@
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::ARM::EventGrid
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
+
19
+ def initialize
20
+ @endpointType = "EventSubscriptionDestination"
21
+ end
22
+
23
+ attr_accessor :endpointType
24
+
25
+
26
+ #
27
+ # Mapper for EventSubscriptionDestination class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'EventSubscriptionDestination',
34
+ type: {
35
+ name: 'Composite',
36
+ polymorphic_discriminator: 'endpointType',
37
+ uber_parent: 'EventSubscriptionDestination',
38
+ class_name: 'EventSubscriptionDestination',
39
+ model_properties: {
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,92 @@
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::ARM::EventGrid
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.
28
+ # If it is desired to subscribe to all event types, the string "all"
29
+ # needs to be specified as an element in this list.
30
+ attr_accessor :included_event_types
31
+
32
+ # @return [Boolean] Specifies if the SubjectBeginsWith and
33
+ # SubjectEndsWith properties of the filter
34
+ # should be compared in a case sensitive manner. Default value: false .
35
+ attr_accessor :is_subject_case_sensitive
36
+
37
+
38
+ #
39
+ # Mapper for EventSubscriptionFilter class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'EventSubscriptionFilter',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'EventSubscriptionFilter',
49
+ model_properties: {
50
+ subject_begins_with: {
51
+ required: false,
52
+ serialized_name: 'subjectBeginsWith',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ subject_ends_with: {
58
+ required: false,
59
+ serialized_name: 'subjectEndsWith',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ included_event_types: {
65
+ required: false,
66
+ serialized_name: 'includedEventTypes',
67
+ type: {
68
+ name: 'Sequence',
69
+ element: {
70
+ required: false,
71
+ serialized_name: 'StringElementType',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ },
78
+ is_subject_case_sensitive: {
79
+ required: false,
80
+ serialized_name: 'isSubjectCaseSensitive',
81
+ default_value: false,
82
+ type: {
83
+ name: 'Boolean'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,45 @@
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::ARM::EventGrid
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
+ required: false,
27
+ serialized_name: 'EventSubscriptionFullUrl',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'EventSubscriptionFullUrl',
31
+ model_properties: {
32
+ endpoint_url: {
33
+ required: false,
34
+ serialized_name: 'endpointUrl',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,20 @@
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::ARM::EventGrid
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
+ end
19
+ end
20
+ end
@@ -0,0 +1,78 @@
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::ARM::EventGrid
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
+
28
+ #
29
+ # Mapper for EventSubscriptionUpdateParameters class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'EventSubscriptionUpdateParameters',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'EventSubscriptionUpdateParameters',
39
+ model_properties: {
40
+ destination: {
41
+ required: false,
42
+ serialized_name: 'destination',
43
+ type: {
44
+ name: 'Composite',
45
+ polymorphic_discriminator: 'endpointType',
46
+ uber_parent: 'EventSubscriptionDestination',
47
+ class_name: 'EventSubscriptionDestination'
48
+ }
49
+ },
50
+ filter: {
51
+ required: false,
52
+ serialized_name: 'filter',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'EventSubscriptionFilter'
56
+ }
57
+ },
58
+ labels: {
59
+ required: false,
60
+ serialized_name: 'labels',
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ required: false,
65
+ serialized_name: 'StringElementType',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ end