-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EventGrid DataPlane SDK: Regenerate the SDK based on latest Swagger t…
…o include new event types. (#2341) * Regenerated EventGrid dataplane SDK for Java to account for new/updated event types. * Updated version in pom.xml.
- Loading branch information
1 parent
6de3bc5
commit 57a3afd
Showing
15 changed files
with
1,384 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...ne/src/main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.eventgrid.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Information about the device connection state event. | ||
*/ | ||
public class DeviceConnectionStateEventInfo { | ||
/** | ||
* Sequence number is string representation of a hexadecimal number. string | ||
* compare can be used to identify the larger number because both in ASCII | ||
* and HEX numbers come after alphabets. If you are converting the string | ||
* to hex, then the number is a 256 bit number. | ||
*/ | ||
@JsonProperty(value = "sequenceNumber") | ||
private String sequenceNumber; | ||
|
||
/** | ||
* Get sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. | ||
* | ||
* @return the sequenceNumber value | ||
*/ | ||
public String sequenceNumber() { | ||
return this.sequenceNumber; | ||
} | ||
|
||
/** | ||
* Set sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. | ||
* | ||
* @param sequenceNumber the sequenceNumber value to set | ||
* @return the DeviceConnectionStateEventInfo object itself. | ||
*/ | ||
public DeviceConnectionStateEventInfo withSequenceNumber(String sequenceNumber) { | ||
this.sequenceNumber = sequenceNumber; | ||
return this; | ||
} | ||
|
||
} |
128 changes: 128 additions & 0 deletions
128
.../main/java/com/microsoft/azure/eventgrid/models/DeviceConnectionStateEventProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.eventgrid.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Schema of the Data property of an EventGridEvent for a device connection | ||
* state event (DeviceConnected, DeviceDisconnected). | ||
*/ | ||
public class DeviceConnectionStateEventProperties { | ||
/** | ||
* The unique identifier of the device. This case-sensitive string can be | ||
* up to 128 characters long, and supports ASCII 7-bit alphanumeric | ||
* characters plus the following special characters: - : . + % _ # | ||
* * ? ! ( ) , = @ ; $ '. | ||
*/ | ||
@JsonProperty(value = "deviceId") | ||
private String deviceId; | ||
|
||
/** | ||
* The unique identifier of the module. This case-sensitive string can be | ||
* up to 128 characters long, and supports ASCII 7-bit alphanumeric | ||
* characters plus the following special characters: - : . + % _ # | ||
* * ? ! ( ) , = @ ; $ '. | ||
*/ | ||
@JsonProperty(value = "moduleId") | ||
private String moduleId; | ||
|
||
/** | ||
* Name of the IoT Hub where the device was created or deleted. | ||
*/ | ||
@JsonProperty(value = "hubName") | ||
private String hubName; | ||
|
||
/** | ||
* Information about the device connection state event. | ||
*/ | ||
@JsonProperty(value = "deviceConnectionStateEventInfo") | ||
private DeviceConnectionStateEventInfo deviceConnectionStateEventInfo; | ||
|
||
/** | ||
* Get the unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '. | ||
* | ||
* @return the deviceId value | ||
*/ | ||
public String deviceId() { | ||
return this.deviceId; | ||
} | ||
|
||
/** | ||
* Set the unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '. | ||
* | ||
* @param deviceId the deviceId value to set | ||
* @return the DeviceConnectionStateEventProperties object itself. | ||
*/ | ||
public DeviceConnectionStateEventProperties withDeviceId(String deviceId) { | ||
this.deviceId = deviceId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '. | ||
* | ||
* @return the moduleId value | ||
*/ | ||
public String moduleId() { | ||
return this.moduleId; | ||
} | ||
|
||
/** | ||
* Set the unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '. | ||
* | ||
* @param moduleId the moduleId value to set | ||
* @return the DeviceConnectionStateEventProperties object itself. | ||
*/ | ||
public DeviceConnectionStateEventProperties withModuleId(String moduleId) { | ||
this.moduleId = moduleId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get name of the IoT Hub where the device was created or deleted. | ||
* | ||
* @return the hubName value | ||
*/ | ||
public String hubName() { | ||
return this.hubName; | ||
} | ||
|
||
/** | ||
* Set name of the IoT Hub where the device was created or deleted. | ||
* | ||
* @param hubName the hubName value to set | ||
* @return the DeviceConnectionStateEventProperties object itself. | ||
*/ | ||
public DeviceConnectionStateEventProperties withHubName(String hubName) { | ||
this.hubName = hubName; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get information about the device connection state event. | ||
* | ||
* @return the deviceConnectionStateEventInfo value | ||
*/ | ||
public DeviceConnectionStateEventInfo deviceConnectionStateEventInfo() { | ||
return this.deviceConnectionStateEventInfo; | ||
} | ||
|
||
/** | ||
* Set information about the device connection state event. | ||
* | ||
* @param deviceConnectionStateEventInfo the deviceConnectionStateEventInfo value to set | ||
* @return the DeviceConnectionStateEventProperties object itself. | ||
*/ | ||
public DeviceConnectionStateEventProperties withDeviceConnectionStateEventInfo(DeviceConnectionStateEventInfo deviceConnectionStateEventInfo) { | ||
this.deviceConnectionStateEventInfo = deviceConnectionStateEventInfo; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ne/src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceConnectedEventData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.eventgrid.models; | ||
|
||
|
||
/** | ||
* Event data for Microsoft.Devices.DeviceConnected event. | ||
*/ | ||
public class IotHubDeviceConnectedEventData extends DeviceConnectionStateEventProperties { | ||
} |
16 changes: 16 additions & 0 deletions
16
...src/main/java/com/microsoft/azure/eventgrid/models/IotHubDeviceDisconnectedEventData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.eventgrid.models; | ||
|
||
|
||
/** | ||
* Event data for Microsoft.Devices.DeviceDisconnected event. | ||
*/ | ||
public class IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEventProperties { | ||
} |
Oops, something went wrong.