azure_event_grid 0.15.3 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22521dd8643d19ece8ac9e2c985328147481d5cb
4
- data.tar.gz: 64ffb2cf4413987ead55416ce5dda2444a26c513
3
+ metadata.gz: 19fe52bf8427272db5f6f427ecbd4bbb46ea8fac
4
+ data.tar.gz: 16579cc55ab299cda10e73a23391bf7f49a89fb7
5
5
  SHA512:
6
- metadata.gz: 7da5f7cdfaf2ed42b9b205a3bd6e2852499b9dbb9a9a02918b1e42b3cc9b4d36b2b12ba5cf008dca72ab8983ee4b2aa4502f7e4db3aa539d7a1bea6b6e79d97b
7
- data.tar.gz: 3786d684eed749038bc35b79992da9af30f0d4db03f138e2be06129a626602268e12a9df4df554be9e7a532a0cdf4ac795d25ab0d97c5a85ab5da97a073a9c42
6
+ metadata.gz: 5098dcaa74dcbff846c400dff2af73752957dfeb274644d14cbb52bf53ecc31f6cb08b47db2c911aec1864ec9b49f4a4318bcd7161c6c0d4af2f0f9aefdb0a4f
7
+ data.tar.gz: 975b05bb705aadc0fee6dfa225b62173b07e9e9fa40b1de1c922fa2e7c0fd453bf087348b225e42a9725f0e31041cf74c5e43b94c26a3c3e098eafa957a37188
@@ -23,15 +23,23 @@ module Azure::EventGrid::V2018_01_01
23
23
  autoload :EventGridClient, '2018-01-01/generated/azure_event_grid/event_grid_client.rb'
24
24
 
25
25
  module Models
26
- autoload :ResourceWriteCancelData, '2018-01-01/generated/azure_event_grid/models/resource_write_cancel_data.rb'
26
+ autoload :EventGridEvent, '2018-01-01/generated/azure_event_grid/models/event_grid_event.rb'
27
27
  autoload :StorageBlobCreatedEventData, '2018-01-01/generated/azure_event_grid/models/storage_blob_created_event_data.rb'
28
- autoload :ResourceDeleteSuccessData, '2018-01-01/generated/azure_event_grid/models/resource_delete_success_data.rb'
28
+ autoload :StorageBlobDeletedEventData, '2018-01-01/generated/azure_event_grid/models/storage_blob_deleted_event_data.rb'
29
29
  autoload :EventHubCaptureFileCreatedEventData, '2018-01-01/generated/azure_event_grid/models/event_hub_capture_file_created_event_data.rb'
30
- autoload :ResourceDeleteFailureData, '2018-01-01/generated/azure_event_grid/models/resource_delete_failure_data.rb'
31
30
  autoload :ResourceWriteFailureData, '2018-01-01/generated/azure_event_grid/models/resource_write_failure_data.rb'
31
+ autoload :DeviceLifeCycleEventProperties, '2018-01-01/generated/azure_event_grid/models/device_life_cycle_event_properties.rb'
32
+ autoload :ResourceDeleteSuccessData, '2018-01-01/generated/azure_event_grid/models/resource_delete_success_data.rb'
33
+ autoload :DeviceTwinMetadata, '2018-01-01/generated/azure_event_grid/models/device_twin_metadata.rb'
32
34
  autoload :ResourceDeleteCancelData, '2018-01-01/generated/azure_event_grid/models/resource_delete_cancel_data.rb'
35
+ autoload :DeviceTwinProperties, '2018-01-01/generated/azure_event_grid/models/device_twin_properties.rb'
36
+ autoload :ResourceWriteCancelData, '2018-01-01/generated/azure_event_grid/models/resource_write_cancel_data.rb'
37
+ autoload :DeviceTwinInfoProperties, '2018-01-01/generated/azure_event_grid/models/device_twin_info_properties.rb'
33
38
  autoload :ResourceWriteSuccessData, '2018-01-01/generated/azure_event_grid/models/resource_write_success_data.rb'
34
- autoload :EventGridEvent, '2018-01-01/generated/azure_event_grid/models/event_grid_event.rb'
35
- autoload :StorageBlobDeletedEventData, '2018-01-01/generated/azure_event_grid/models/storage_blob_deleted_event_data.rb'
39
+ autoload :DeviceTwinInfoX509Thumbprint, '2018-01-01/generated/azure_event_grid/models/device_twin_info_x509thumbprint.rb'
40
+ autoload :ResourceDeleteFailureData, '2018-01-01/generated/azure_event_grid/models/resource_delete_failure_data.rb'
41
+ autoload :DeviceTwinInfo, '2018-01-01/generated/azure_event_grid/models/device_twin_info.rb'
42
+ autoload :IotHubDeviceCreatedEventData, '2018-01-01/generated/azure_event_grid/models/iot_hub_device_created_event_data.rb'
43
+ autoload :IotHubDeviceDeletedEventData, '2018-01-01/generated/azure_event_grid/models/iot_hub_device_deleted_event_data.rb'
36
44
  end
37
45
  end
@@ -119,8 +119,8 @@ module Azure::EventGrid::V2018_01_01
119
119
  # will be added to the HTTP request.
120
120
  #
121
121
  #
122
- def publish_events(topic_hostname, events, custom_headers = nil)
123
- response = publish_events_async(topic_hostname, events, custom_headers).value!
122
+ def publish_events(topic_hostname, events, custom_headers:nil)
123
+ response = publish_events_async(topic_hostname, events, custom_headers:custom_headers).value!
124
124
  nil
125
125
  end
126
126
 
@@ -136,8 +136,8 @@ module Azure::EventGrid::V2018_01_01
136
136
  #
137
137
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
138
138
  #
139
- def publish_events_with_http_info(topic_hostname, events, custom_headers = nil)
140
- publish_events_async(topic_hostname, events, custom_headers).value!
139
+ def publish_events_with_http_info(topic_hostname, events, custom_headers:nil)
140
+ publish_events_async(topic_hostname, events, custom_headers:custom_headers).value!
141
141
  end
142
142
 
143
143
  #
@@ -152,14 +152,13 @@ module Azure::EventGrid::V2018_01_01
152
152
  #
153
153
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
154
154
  #
155
- def publish_events_async(topic_hostname, events, custom_headers = nil)
155
+ def publish_events_async(topic_hostname, events, custom_headers:nil)
156
156
  fail ArgumentError, 'topic_hostname is nil' if topic_hostname.nil?
157
157
  fail ArgumentError, 'events is nil' if events.nil?
158
158
  fail ArgumentError, 'api_version is nil' if api_version.nil?
159
159
 
160
160
 
161
161
  request_headers = {}
162
-
163
162
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
164
163
 
165
164
  # Set Headers
@@ -225,7 +224,7 @@ module Azure::EventGrid::V2018_01_01
225
224
  #
226
225
  def add_telemetry
227
226
  sdk_information = 'azure_event_grid'
228
- sdk_information = "#{sdk_information}/0.15.3"
227
+ sdk_information = "#{sdk_information}/0.16.0"
229
228
  add_user_agent_information(sdk_information)
230
229
  end
231
230
  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::V2018_01_01
7
+ module Models
8
+ #
9
+ # Schema of the Data property of an EventGridEvent for a device life cycle
10
+ # event (DeviceCreated, DeviceDeleted).
11
+ #
12
+ class DeviceLifeCycleEventProperties
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] Name of the IoT Hub where the device was created or
23
+ # deleted.
24
+ attr_accessor :hub_name
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
+ # @return [DeviceTwinInfo] Information about the device twin, which is
34
+ # the cloud represenation of application device metadata.
35
+ attr_accessor :twin
36
+
37
+
38
+ #
39
+ # Mapper for DeviceLifeCycleEventProperties class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'DeviceLifeCycleEventProperties',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'DeviceLifeCycleEventProperties',
50
+ model_properties: {
51
+ device_id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'deviceId',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ hub_name: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'hubName',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
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
+ twin: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'twin',
87
+ type: {
88
+ name: 'Composite',
89
+ class_name: 'DeviceTwinInfo'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,167 @@
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 twin, which is the cloud represenation of
10
+ # application device metadata.
11
+ #
12
+ class DeviceTwinInfo
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Authentication type used for this device: either SAS,
17
+ # SelfSigned, or CertificateAuthority.
18
+ attr_accessor :authentication_type
19
+
20
+ # @return [Float] Count of cloud to device messages sent to this device.
21
+ attr_accessor :cloud_to_device_message_count
22
+
23
+ # @return [String] Whether the device is connected or disconnected.
24
+ attr_accessor :connection_state
25
+
26
+ # @return [String] The unique identifier of the device twin.
27
+ attr_accessor :device_id
28
+
29
+ # @return [String] A piece of information that describes the content of
30
+ # the device twin. Each etag is guaranteed to be unique per device twin.
31
+ attr_accessor :etag
32
+
33
+ # @return [String] The ISO8601 timestamp of the last activity.
34
+ attr_accessor :last_activity_time
35
+
36
+ # @return [DeviceTwinInfoProperties] Properties JSON element.
37
+ attr_accessor :properties
38
+
39
+ # @return [String] Whether the device twin is enabled or disabled.
40
+ attr_accessor :status
41
+
42
+ # @return [String] The ISO8601 timestamp of the last device twin status
43
+ # update.
44
+ attr_accessor :status_update_time
45
+
46
+ # @return [Float] An integer that is incremented by one each time the
47
+ # device twin is updated.
48
+ attr_accessor :version
49
+
50
+ # @return [DeviceTwinInfoX509Thumbprint] The thumbprint is a unique value
51
+ # for the x509 certificate, commonly used to find a particular
52
+ # certificate in a certificate store. The thumbprint is dynamically
53
+ # generated using the SHA1 algorithm, and does not physically exist in
54
+ # the certificate.
55
+ attr_accessor :x509thumbprint
56
+
57
+
58
+ #
59
+ # Mapper for DeviceTwinInfo class as Ruby Hash.
60
+ # This will be used for serialization/deserialization.
61
+ #
62
+ def self.mapper()
63
+ {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'DeviceTwinInfo',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'DeviceTwinInfo',
70
+ model_properties: {
71
+ authentication_type: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'authenticationType',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ cloud_to_device_message_count: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'cloudToDeviceMessageCount',
83
+ type: {
84
+ name: 'Double'
85
+ }
86
+ },
87
+ connection_state: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'connectionState',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ device_id: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'deviceId',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ etag: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'etag',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ last_activity_time: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ serialized_name: 'lastActivityTime',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ properties: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'properties',
123
+ type: {
124
+ name: 'Composite',
125
+ class_name: 'DeviceTwinInfoProperties'
126
+ }
127
+ },
128
+ status: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'status',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ status_update_time: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'statusUpdateTime',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ },
144
+ version: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'version',
148
+ type: {
149
+ name: 'Double'
150
+ }
151
+ },
152
+ x509thumbprint: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ serialized_name: 'x509Thumbprint',
156
+ type: {
157
+ name: 'Composite',
158
+ class_name: 'DeviceTwinInfoX509Thumbprint'
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ end
165
+ end
166
+ end
167
+ end
@@ -0,0 +1,61 @@
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
+ # Properties JSON element.
10
+ #
11
+ class DeviceTwinInfoProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DeviceTwinProperties] A portion of the properties that can be
16
+ # written only by the application back-end, and read by the device.
17
+ attr_accessor :desired
18
+
19
+ # @return [DeviceTwinProperties] A portion of the properties that can be
20
+ # written only by the device, and read by the application back-end.
21
+ attr_accessor :reported
22
+
23
+
24
+ #
25
+ # Mapper for DeviceTwinInfoProperties class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'DeviceTwinInfo_properties',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'DeviceTwinInfoProperties',
36
+ model_properties: {
37
+ desired: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'desired',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'DeviceTwinProperties'
44
+ }
45
+ },
46
+ reported: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'reported',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'DeviceTwinProperties'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,60 @@
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
+ # The thumbprint is a unique value for the x509 certificate, commonly used
10
+ # to find a particular certificate in a certificate store. The thumbprint
11
+ # is dynamically generated using the SHA1 algorithm, and does not
12
+ # physically exist in the certificate.
13
+ #
14
+ class DeviceTwinInfoX509Thumbprint
15
+
16
+ include MsRestAzure
17
+
18
+ # @return [String] Primary thumbprint for the x509 certificate.
19
+ attr_accessor :primary_thumbprint
20
+
21
+ # @return [String] Secondary thumbprint for the x509 certificate.
22
+ attr_accessor :secondary_thumbprint
23
+
24
+
25
+ #
26
+ # Mapper for DeviceTwinInfoX509Thumbprint class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'DeviceTwinInfo_x509Thumbprint',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'DeviceTwinInfoX509Thumbprint',
37
+ model_properties: {
38
+ primary_thumbprint: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'primaryThumbprint',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ secondary_thumbprint: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'secondaryThumbprint',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ 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::V2018_01_01
7
+ module Models
8
+ #
9
+ # Metadata information for the properties JSON document.
10
+ #
11
+ class DeviceTwinMetadata
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ISO8601 timestamp of the last time the properties
16
+ # were updated.
17
+ attr_accessor :last_updated
18
+
19
+
20
+ #
21
+ # Mapper for DeviceTwinMetadata 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: 'DeviceTwinMetadata',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'DeviceTwinMetadata',
32
+ model_properties: {
33
+ last_updated: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'lastUpdated',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,60 @@
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
+ # A portion of the properties that can be written only by the application
10
+ # back-end, and read by the device.
11
+ #
12
+ class DeviceTwinProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [DeviceTwinMetadata] Metadata information for the properties
17
+ # JSON document.
18
+ attr_accessor :metadata
19
+
20
+ # @return [Float] Version of device twin properties.
21
+ attr_accessor :version
22
+
23
+
24
+ #
25
+ # Mapper for DeviceTwinProperties class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'DeviceTwinProperties',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'DeviceTwinProperties',
36
+ model_properties: {
37
+ metadata: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'metadata',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'DeviceTwinMetadata'
44
+ }
45
+ },
46
+ version: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'version',
50
+ type: {
51
+ name: 'Double'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,76 @@
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.DeviceCreated event.
10
+ #
11
+ class IotHubDeviceCreatedEventData < DeviceLifeCycleEventProperties
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for IotHubDeviceCreatedEventData 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: 'IotHubDeviceCreatedEventData',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'IotHubDeviceCreatedEventData',
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
+ hub_name: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'hubName',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ op_type: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'opType',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ operation_timestamp: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'operationTimestamp',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ twin: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'twin',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'DeviceTwinInfo'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,76 @@
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.DeviceDeleted event.
10
+ #
11
+ class IotHubDeviceDeletedEventData < DeviceLifeCycleEventProperties
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ #
17
+ # Mapper for IotHubDeviceDeletedEventData 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: 'IotHubDeviceDeletedEventData',
25
+ type: {
26
+ name: 'Composite',
27
+ class_name: 'IotHubDeviceDeletedEventData',
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
+ hub_name: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'hubName',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ op_type: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'opType',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ operation_timestamp: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'operationTimestamp',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ twin: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'twin',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'DeviceTwinInfo'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -7,16 +7,24 @@ require 'azure_event_grid'
7
7
  module Azure::EventGrid::Profiles::Latest
8
8
 
9
9
  module Models
10
- ResourceWriteCancelData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData
10
+ EventGridEvent = Azure::EventGrid::V2018_01_01::Models::EventGridEvent
11
11
  StorageBlobCreatedEventData = Azure::EventGrid::V2018_01_01::Models::StorageBlobCreatedEventData
12
- ResourceDeleteSuccessData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteSuccessData
12
+ StorageBlobDeletedEventData = Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData
13
13
  EventHubCaptureFileCreatedEventData = Azure::EventGrid::V2018_01_01::Models::EventHubCaptureFileCreatedEventData
14
- ResourceDeleteFailureData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteFailureData
15
14
  ResourceWriteFailureData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteFailureData
15
+ DeviceLifeCycleEventProperties = Azure::EventGrid::V2018_01_01::Models::DeviceLifeCycleEventProperties
16
+ ResourceDeleteSuccessData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteSuccessData
17
+ DeviceTwinMetadata = Azure::EventGrid::V2018_01_01::Models::DeviceTwinMetadata
16
18
  ResourceDeleteCancelData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteCancelData
19
+ DeviceTwinProperties = Azure::EventGrid::V2018_01_01::Models::DeviceTwinProperties
20
+ ResourceWriteCancelData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData
21
+ DeviceTwinInfoProperties = Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfoProperties
17
22
  ResourceWriteSuccessData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteSuccessData
18
- EventGridEvent = Azure::EventGrid::V2018_01_01::Models::EventGridEvent
19
- StorageBlobDeletedEventData = Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData
23
+ DeviceTwinInfoX509Thumbprint = Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfoX509Thumbprint
24
+ ResourceDeleteFailureData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteFailureData
25
+ DeviceTwinInfo = Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfo
26
+ IotHubDeviceCreatedEventData = Azure::EventGrid::V2018_01_01::Models::IotHubDeviceCreatedEventData
27
+ IotHubDeviceDeletedEventData = Azure::EventGrid::V2018_01_01::Models::IotHubDeviceDeletedEventData
20
28
  end
21
29
 
22
30
  #
@@ -38,11 +46,11 @@ module Azure::EventGrid::Profiles::Latest
38
46
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
39
47
  @options = options[:options].nil? ? nil:options[:options]
40
48
 
41
- client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options)
42
- if(client_0.respond_to?(:subscription_id))
43
- client_0.subscription_id = configurable.subscription_id
49
+ @client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options)
50
+ if(@client_0.respond_to?(:subscription_id))
51
+ @client_0.subscription_id = configurable.subscription_id
44
52
  end
45
- add_telemetry(client_0)
53
+ add_telemetry(@client_0)
46
54
 
47
55
  @model_classes = ModelClasses.new
48
56
  end
@@ -52,38 +60,70 @@ module Azure::EventGrid::Profiles::Latest
52
60
  client.add_user_agent_information(profile_information)
53
61
  end
54
62
 
63
+ def method_missing(method, *args)
64
+ if @client_0.respond_to?method
65
+ @client_0.send(method, *args)
66
+ else
67
+ super
68
+ end
69
+ end
70
+
55
71
  end
56
72
 
57
73
  class ModelClasses
58
- def resource_write_cancel_data
59
- Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData
74
+ def event_grid_event
75
+ Azure::EventGrid::V2018_01_01::Models::EventGridEvent
60
76
  end
61
77
  def storage_blob_created_event_data
62
78
  Azure::EventGrid::V2018_01_01::Models::StorageBlobCreatedEventData
63
79
  end
64
- def resource_delete_success_data
65
- Azure::EventGrid::V2018_01_01::Models::ResourceDeleteSuccessData
80
+ def storage_blob_deleted_event_data
81
+ Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData
66
82
  end
67
83
  def event_hub_capture_file_created_event_data
68
84
  Azure::EventGrid::V2018_01_01::Models::EventHubCaptureFileCreatedEventData
69
85
  end
70
- def resource_delete_failure_data
71
- Azure::EventGrid::V2018_01_01::Models::ResourceDeleteFailureData
72
- end
73
86
  def resource_write_failure_data
74
87
  Azure::EventGrid::V2018_01_01::Models::ResourceWriteFailureData
75
88
  end
89
+ def device_life_cycle_event_properties
90
+ Azure::EventGrid::V2018_01_01::Models::DeviceLifeCycleEventProperties
91
+ end
92
+ def resource_delete_success_data
93
+ Azure::EventGrid::V2018_01_01::Models::ResourceDeleteSuccessData
94
+ end
95
+ def device_twin_metadata
96
+ Azure::EventGrid::V2018_01_01::Models::DeviceTwinMetadata
97
+ end
76
98
  def resource_delete_cancel_data
77
99
  Azure::EventGrid::V2018_01_01::Models::ResourceDeleteCancelData
78
100
  end
101
+ def device_twin_properties
102
+ Azure::EventGrid::V2018_01_01::Models::DeviceTwinProperties
103
+ end
104
+ def resource_write_cancel_data
105
+ Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData
106
+ end
107
+ def device_twin_info_properties
108
+ Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfoProperties
109
+ end
79
110
  def resource_write_success_data
80
111
  Azure::EventGrid::V2018_01_01::Models::ResourceWriteSuccessData
81
112
  end
82
- def event_grid_event
83
- Azure::EventGrid::V2018_01_01::Models::EventGridEvent
113
+ def device_twin_info_x509_thumbprint
114
+ Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfoX509Thumbprint
84
115
  end
85
- def storage_blob_deleted_event_data
86
- Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData
116
+ def resource_delete_failure_data
117
+ Azure::EventGrid::V2018_01_01::Models::ResourceDeleteFailureData
118
+ end
119
+ def device_twin_info
120
+ Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfo
121
+ end
122
+ def iot_hub_device_created_event_data
123
+ Azure::EventGrid::V2018_01_01::Models::IotHubDeviceCreatedEventData
124
+ end
125
+ def iot_hub_device_deleted_event_data
126
+ Azure::EventGrid::V2018_01_01::Models::IotHubDeviceDeletedEventData
87
127
  end
88
128
  end
89
129
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::EventGrid
6
- VERSION = '0.15.3'
6
+ VERSION = '0.16.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_event_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,8 +89,16 @@ files:
89
89
  - LICENSE.txt
90
90
  - lib/2018-01-01/generated/azure_event_grid.rb
91
91
  - lib/2018-01-01/generated/azure_event_grid/event_grid_client.rb
92
+ - lib/2018-01-01/generated/azure_event_grid/models/device_life_cycle_event_properties.rb
93
+ - lib/2018-01-01/generated/azure_event_grid/models/device_twin_info.rb
94
+ - lib/2018-01-01/generated/azure_event_grid/models/device_twin_info_properties.rb
95
+ - lib/2018-01-01/generated/azure_event_grid/models/device_twin_info_x509thumbprint.rb
96
+ - lib/2018-01-01/generated/azure_event_grid/models/device_twin_metadata.rb
97
+ - lib/2018-01-01/generated/azure_event_grid/models/device_twin_properties.rb
92
98
  - lib/2018-01-01/generated/azure_event_grid/models/event_grid_event.rb
93
99
  - lib/2018-01-01/generated/azure_event_grid/models/event_hub_capture_file_created_event_data.rb
100
+ - lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_created_event_data.rb
101
+ - lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_deleted_event_data.rb
94
102
  - lib/2018-01-01/generated/azure_event_grid/models/resource_delete_cancel_data.rb
95
103
  - lib/2018-01-01/generated/azure_event_grid/models/resource_delete_failure_data.rb
96
104
  - lib/2018-01-01/generated/azure_event_grid/models/resource_delete_success_data.rb
@@ -131,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
139
  version: '0'
132
140
  requirements: []
133
141
  rubyforge_project:
134
- rubygems_version: 2.6.10
142
+ rubygems_version: 2.5.1
135
143
  signing_key:
136
144
  specification_version: 4
137
145
  summary: Official Ruby client library to consume Microsoft Azure Event Grid.