azure_event_grid 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2018-01-01/generated/azure_event_grid.rb +28 -10
- data/lib/2018-01-01/generated/azure_event_grid/event_grid_client.rb +7 -6
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_event_actor.rb +48 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_event_data.rb +121 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_event_request.rb +93 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_event_source.rb +61 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_event_target.rb +115 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_image_deleted_event_data.rb +96 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_image_pushed_event_data.rb +96 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/device_connection_state_event_info.rb +50 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/device_connection_state_event_properties.rb +89 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/device_life_cycle_event_properties.rb +2 -25
- data/lib/2018-01-01/generated/azure_event_grid/models/device_twin_info.rb +1 -1
- data/lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_connected_event_data.rb +68 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_created_event_data.rb +0 -16
- data/lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_deleted_event_data.rb +0 -16
- data/lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_disconnected_event_data.rb +68 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/job_state.rb +21 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/media_job_state_change_event_data.rb +66 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/service_bus_active_messages_available_with_no_listeners_event_data.rb +109 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/service_bus_deadletter_messages_available_with_no_listeners_event_data.rb +111 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/subscription_deleted_event_data.rb +49 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/subscription_validation_event_data.rb +68 -0
- data/lib/2018-01-01/generated/azure_event_grid/models/subscription_validation_response.rb +50 -0
- data/lib/profiles/latest/modules/eventgrid_profile_module.rb +108 -36
- data/lib/version.rb +1 -1
- metadata +22 -4
data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_image_deleted_event_data.rb
ADDED
@@ -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::EventGrid::V2018_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Schema of the Data property of an EventGridEvent for a
|
10
|
+
# Microsoft.ContainerRegistry.ImageDeleted event.
|
11
|
+
#
|
12
|
+
class ContainerRegistryImageDeletedEventData < ContainerRegistryEventData
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
#
|
18
|
+
# Mapper for ContainerRegistryImageDeletedEventData class as Ruby Hash.
|
19
|
+
# This will be used for serialization/deserialization.
|
20
|
+
#
|
21
|
+
def self.mapper()
|
22
|
+
{
|
23
|
+
client_side_validation: true,
|
24
|
+
required: false,
|
25
|
+
serialized_name: 'ContainerRegistryImageDeletedEventData',
|
26
|
+
type: {
|
27
|
+
name: 'Composite',
|
28
|
+
class_name: 'ContainerRegistryImageDeletedEventData',
|
29
|
+
model_properties: {
|
30
|
+
id: {
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'id',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
},
|
38
|
+
timestamp: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'timestamp',
|
42
|
+
type: {
|
43
|
+
name: 'DateTime'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
action: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'action',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
target: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'target',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'ContainerRegistryEventTarget'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
request: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'request',
|
67
|
+
type: {
|
68
|
+
name: 'Composite',
|
69
|
+
class_name: 'ContainerRegistryEventRequest'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
actor: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'actor',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'ContainerRegistryEventActor'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
source: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'source',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'ContainerRegistryEventSource'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
data/lib/2018-01-01/generated/azure_event_grid/models/container_registry_image_pushed_event_data.rb
ADDED
@@ -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::EventGrid::V2018_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Schema of the Data property of an EventGridEvent for a
|
10
|
+
# Microsoft.ContainerRegistry.ImagePushed event.
|
11
|
+
#
|
12
|
+
class ContainerRegistryImagePushedEventData < ContainerRegistryEventData
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
#
|
18
|
+
# Mapper for ContainerRegistryImagePushedEventData class as Ruby Hash.
|
19
|
+
# This will be used for serialization/deserialization.
|
20
|
+
#
|
21
|
+
def self.mapper()
|
22
|
+
{
|
23
|
+
client_side_validation: true,
|
24
|
+
required: false,
|
25
|
+
serialized_name: 'ContainerRegistryImagePushedEventData',
|
26
|
+
type: {
|
27
|
+
name: 'Composite',
|
28
|
+
class_name: 'ContainerRegistryImagePushedEventData',
|
29
|
+
model_properties: {
|
30
|
+
id: {
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'id',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
},
|
38
|
+
timestamp: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'timestamp',
|
42
|
+
type: {
|
43
|
+
name: 'DateTime'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
action: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'action',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
target: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'target',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'ContainerRegistryEventTarget'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
request: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'request',
|
67
|
+
type: {
|
68
|
+
name: 'Composite',
|
69
|
+
class_name: 'ContainerRegistryEventRequest'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
actor: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'actor',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'ContainerRegistryEventActor'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
source: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'source',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'ContainerRegistryEventSource'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -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::V2018_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Information about the device connection state event.
|
10
|
+
#
|
11
|
+
class DeviceConnectionStateEventInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Sequence number is string representation of a
|
16
|
+
# hexadecimal number. string compare can be used to identify the larger
|
17
|
+
# number because both in ASCII and HEX numbers come after alphabets. If
|
18
|
+
# you are converting the string to hex, then the number is a 256 bit
|
19
|
+
# number.
|
20
|
+
attr_accessor :sequence_number
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for DeviceConnectionStateEventInfo 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: 'DeviceConnectionStateEventInfo',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'DeviceConnectionStateEventInfo',
|
35
|
+
model_properties: {
|
36
|
+
sequence_number: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'sequenceNumber',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/lib/2018-01-01/generated/azure_event_grid/models/device_connection_state_event_properties.rb
ADDED
@@ -0,0 +1,89 @@
|
|
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::V2018_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Schema of the Data property of an EventGridEvent for a device connection
|
10
|
+
# state event (DeviceConnected, DeviceDisconnected).
|
11
|
+
#
|
12
|
+
class DeviceConnectionStateEventProperties
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The unique identifier of the device. This
|
17
|
+
# case-sensitive string can be up to 128 characters long, and supports
|
18
|
+
# ASCII 7-bit alphanumeric characters plus the following special
|
19
|
+
# characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.
|
20
|
+
attr_accessor :device_id
|
21
|
+
|
22
|
+
# @return [String] The unique identifier of the module. This
|
23
|
+
# case-sensitive string can be up to 128 characters long, and supports
|
24
|
+
# ASCII 7-bit alphanumeric characters plus the following special
|
25
|
+
# characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.
|
26
|
+
attr_accessor :module_id
|
27
|
+
|
28
|
+
# @return [String] Name of the IoT Hub where the device was created or
|
29
|
+
# deleted.
|
30
|
+
attr_accessor :hub_name
|
31
|
+
|
32
|
+
# @return [DeviceConnectionStateEventInfo] Information about the device
|
33
|
+
# connection state event.
|
34
|
+
attr_accessor :device_connection_state_event_info
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for DeviceConnectionStateEventProperties class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'DeviceConnectionStateEventProperties',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'DeviceConnectionStateEventProperties',
|
49
|
+
model_properties: {
|
50
|
+
device_id: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'deviceId',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
module_id: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'moduleId',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
hub_name: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'hubName',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
device_connection_state_event_info: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'deviceConnectionStateEventInfo',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'DeviceConnectionStateEventInfo'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -16,22 +16,15 @@ module Azure::EventGrid::V2018_01_01
|
|
16
16
|
# @return [String] The unique identifier of the device. This
|
17
17
|
# case-sensitive string can be up to 128 characters long, and supports
|
18
18
|
# ASCII 7-bit alphanumeric characters plus the following special
|
19
|
-
# characters: - : . + % _
|
19
|
+
# characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.
|
20
20
|
attr_accessor :device_id
|
21
21
|
|
22
22
|
# @return [String] Name of the IoT Hub where the device was created or
|
23
23
|
# deleted.
|
24
24
|
attr_accessor :hub_name
|
25
25
|
|
26
|
-
# @return [String] The event type specified for this operation by the IoT
|
27
|
-
# Hub.
|
28
|
-
attr_accessor :op_type
|
29
|
-
|
30
|
-
# @return [String] The ISO8601 timestamp of the operation.
|
31
|
-
attr_accessor :operation_timestamp
|
32
|
-
|
33
26
|
# @return [DeviceTwinInfo] Information about the device twin, which is
|
34
|
-
# the cloud
|
27
|
+
# the cloud representation of application device metadata.
|
35
28
|
attr_accessor :twin
|
36
29
|
|
37
30
|
|
@@ -64,22 +57,6 @@ module Azure::EventGrid::V2018_01_01
|
|
64
57
|
name: 'String'
|
65
58
|
}
|
66
59
|
},
|
67
|
-
op_type: {
|
68
|
-
client_side_validation: true,
|
69
|
-
required: false,
|
70
|
-
serialized_name: 'opType',
|
71
|
-
type: {
|
72
|
-
name: 'String'
|
73
|
-
}
|
74
|
-
},
|
75
|
-
operation_timestamp: {
|
76
|
-
client_side_validation: true,
|
77
|
-
required: false,
|
78
|
-
serialized_name: 'operationTimestamp',
|
79
|
-
type: {
|
80
|
-
name: 'String'
|
81
|
-
}
|
82
|
-
},
|
83
60
|
twin: {
|
84
61
|
client_side_validation: true,
|
85
62
|
required: false,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
module Azure::EventGrid::V2018_01_01
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Information about the device twin, which is the cloud
|
9
|
+
# Information about the device twin, which is the cloud representation of
|
10
10
|
# application device metadata.
|
11
11
|
#
|
12
12
|
class DeviceTwinInfo
|
@@ -0,0 +1,68 @@
|
|
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::V2018_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Event data for Microsoft.Devices.DeviceConnected event.
|
10
|
+
#
|
11
|
+
class IotHubDeviceConnectedEventData < DeviceConnectionStateEventProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
#
|
17
|
+
# Mapper for IotHubDeviceConnectedEventData class as Ruby Hash.
|
18
|
+
# This will be used for serialization/deserialization.
|
19
|
+
#
|
20
|
+
def self.mapper()
|
21
|
+
{
|
22
|
+
client_side_validation: true,
|
23
|
+
required: false,
|
24
|
+
serialized_name: 'IotHubDeviceConnectedEventData',
|
25
|
+
type: {
|
26
|
+
name: 'Composite',
|
27
|
+
class_name: 'IotHubDeviceConnectedEventData',
|
28
|
+
model_properties: {
|
29
|
+
device_id: {
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'deviceId',
|
33
|
+
type: {
|
34
|
+
name: 'String'
|
35
|
+
}
|
36
|
+
},
|
37
|
+
module_id: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'moduleId',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
hub_name: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'hubName',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
device_connection_state_event_info: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'deviceConnectionStateEventInfo',
|
57
|
+
type: {
|
58
|
+
name: 'Composite',
|
59
|
+
class_name: 'DeviceConnectionStateEventInfo'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|