azure_mgmt_event_grid 0.17.4 → 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid.rb +93 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +653 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domains.rb +1236 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +153 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +3318 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +142 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +50 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +106 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +67 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/operations.rb +116 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +299 -0
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topics.rb +1345 -0
- data/lib/azure_mgmt_event_grid.rb +1 -0
- data/lib/profiles/latest/modules/eventgrid_profile_module.rb +204 -84
- data/lib/version.rb +1 -1
- metadata +70 -1
@@ -0,0 +1,75 @@
|
|
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_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Domain Topic
|
10
|
+
#
|
11
|
+
class DomainTopic < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DomainTopicProvisioningState] Provisioning state of the domain
|
16
|
+
# topic. Possible values include: 'Creating', 'Updating', 'Deleting',
|
17
|
+
# 'Succeeded', 'Canceled', 'Failed'
|
18
|
+
attr_accessor :provisioning_state
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for DomainTopic class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
client_side_validation: true,
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'DomainTopic',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'DomainTopic',
|
33
|
+
model_properties: {
|
34
|
+
id: {
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
read_only: true,
|
38
|
+
serialized_name: 'id',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
name: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
read_only: true,
|
47
|
+
serialized_name: 'name',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
type: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'type',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
provisioning_state: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'properties.provisioningState',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
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::EventGrid::Mgmt::V2019_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for DomainTopicProvisioningState
|
10
|
+
#
|
11
|
+
module DomainTopicProvisioningState
|
12
|
+
Creating = "Creating"
|
13
|
+
Updating = "Updating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
Canceled = "Canceled"
|
17
|
+
Failed = "Failed"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb
ADDED
@@ -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_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the List Domain Topics operation
|
10
|
+
#
|
11
|
+
class DomainTopicsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<DomainTopic>] A collection of Domain Topics
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] A link for the next page of domain topics
|
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<DomainTopic>] 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 [DomainTopicsListResult] 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 DomainTopicsListResult 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: 'DomainTopicsListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'DomainTopicsListResult',
|
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: 'DomainTopicElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'DomainTopic'
|
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
|
data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb
ADDED
@@ -0,0 +1,54 @@
|
|
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_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Properties of the Domain update
|
10
|
+
#
|
11
|
+
class DomainUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Tags of the domains resource
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for DomainUpdateParameters class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'DomainUpdateParameters',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'DomainUpdateParameters',
|
31
|
+
model_properties: {
|
32
|
+
tags: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'tags',
|
36
|
+
type: {
|
37
|
+
name: 'Dictionary',
|
38
|
+
value: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'StringElementType',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
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_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the List Domains operation
|
10
|
+
#
|
11
|
+
class DomainsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Domain>] A collection of Domains
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] A link for the next page of domains
|
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<Domain>] 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 [DomainsListResult] 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 DomainsListResult 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: 'DomainsListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'DomainsListResult',
|
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: 'DomainElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'Domain'
|
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
|
@@ -0,0 +1,17 @@
|
|
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_02_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for EventDeliverySchema
|
10
|
+
#
|
11
|
+
module EventDeliverySchema
|
12
|
+
EventGridSchema = "EventGridSchema"
|
13
|
+
CloudEventV01Schema = "CloudEventV01Schema"
|
14
|
+
CustomInputSchema = "CustomInputSchema"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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_02_01_preview
|
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
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'EventHub',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'EventHubEventSubscriptionDestination',
|
39
|
+
model_properties: {
|
40
|
+
endpointType: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: true,
|
43
|
+
serialized_name: 'endpointType',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
resource_id: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'properties.resourceId',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,189 @@
|
|
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_02_01_preview
|
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', 'AwaitingManualAction'
|
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
|
+
# @return [DateTime] Expiration time of the event subscription.
|
36
|
+
attr_accessor :expiration_time_utc
|
37
|
+
|
38
|
+
# @return [EventDeliverySchema] The event delivery schema for the event
|
39
|
+
# subscription. Possible values include: 'EventGridSchema',
|
40
|
+
# 'CloudEventV01Schema', 'CustomInputSchema'
|
41
|
+
attr_accessor :event_delivery_schema
|
42
|
+
|
43
|
+
# @return [RetryPolicy] The retry policy for events. This can be used to
|
44
|
+
# configure maximum number of delivery attempts and time to live for
|
45
|
+
# events.
|
46
|
+
attr_accessor :retry_policy
|
47
|
+
|
48
|
+
# @return [DeadLetterDestination] The DeadLetter destination of the event
|
49
|
+
# subscription.
|
50
|
+
attr_accessor :dead_letter_destination
|
51
|
+
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for EventSubscription class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'EventSubscription',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'EventSubscription',
|
65
|
+
model_properties: {
|
66
|
+
id: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
read_only: true,
|
70
|
+
serialized_name: 'id',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
name: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
read_only: true,
|
79
|
+
serialized_name: 'name',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
type: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'type',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
topic: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'properties.topic',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
provisioning_state: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
read_only: true,
|
106
|
+
serialized_name: 'properties.provisioningState',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
destination: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'properties.destination',
|
115
|
+
type: {
|
116
|
+
name: 'Composite',
|
117
|
+
polymorphic_discriminator: 'endpointType',
|
118
|
+
uber_parent: 'EventSubscriptionDestination',
|
119
|
+
class_name: 'EventSubscriptionDestination'
|
120
|
+
}
|
121
|
+
},
|
122
|
+
filter: {
|
123
|
+
client_side_validation: true,
|
124
|
+
required: false,
|
125
|
+
serialized_name: 'properties.filter',
|
126
|
+
type: {
|
127
|
+
name: 'Composite',
|
128
|
+
class_name: 'EventSubscriptionFilter'
|
129
|
+
}
|
130
|
+
},
|
131
|
+
labels: {
|
132
|
+
client_side_validation: true,
|
133
|
+
required: false,
|
134
|
+
serialized_name: 'properties.labels',
|
135
|
+
type: {
|
136
|
+
name: 'Sequence',
|
137
|
+
element: {
|
138
|
+
client_side_validation: true,
|
139
|
+
required: false,
|
140
|
+
serialized_name: 'StringElementType',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
},
|
147
|
+
expiration_time_utc: {
|
148
|
+
client_side_validation: true,
|
149
|
+
required: false,
|
150
|
+
serialized_name: 'properties.expirationTimeUtc',
|
151
|
+
type: {
|
152
|
+
name: 'DateTime'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
event_delivery_schema: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'properties.eventDeliverySchema',
|
159
|
+
type: {
|
160
|
+
name: 'String'
|
161
|
+
}
|
162
|
+
},
|
163
|
+
retry_policy: {
|
164
|
+
client_side_validation: true,
|
165
|
+
required: false,
|
166
|
+
serialized_name: 'properties.retryPolicy',
|
167
|
+
type: {
|
168
|
+
name: 'Composite',
|
169
|
+
class_name: 'RetryPolicy'
|
170
|
+
}
|
171
|
+
},
|
172
|
+
dead_letter_destination: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: false,
|
175
|
+
serialized_name: 'properties.deadLetterDestination',
|
176
|
+
type: {
|
177
|
+
name: 'Composite',
|
178
|
+
polymorphic_discriminator: 'endpointType',
|
179
|
+
uber_parent: 'DeadLetterDestination',
|
180
|
+
class_name: 'DeadLetterDestination'
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|