Skip to content

Commit

Permalink
generated v2018_04_01 and v2012_12_01_preview of IoTHub (#4088)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored Jun 24, 2019
1 parent c7452c6 commit 1962d90
Show file tree
Hide file tree
Showing 191 changed files with 16,000 additions and 565 deletions.
12 changes: 6 additions & 6 deletions iothub/resource-manager/v2018_04_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure.azure-mgmt-iothub-2018-04-01</groupId>
<groupId>com.microsoft.azure.iothub.v2018_04_01</groupId>
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-iothub</artifactId>
<version>1.0.0-beta-SNAPSHOT</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Devices Management</name>
<description>This package contains Microsoft Devices Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CertificateBodyDescription {
private String certificate;

/**
* Get the certificate value.
* Get base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
*
* @return the certificate value
*/
Expand All @@ -31,7 +31,7 @@ public String certificate() {
}

/**
* Set the certificate value.
* Set base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
*
* @param certificate the certificate value to set
* @return the CertificateBodyDescription object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public interface CertificateDescription extends HasInner<CertificateDescriptionI
/**
* The entirety of the CertificateDescription definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithIotHub, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithIotHub, DefinitionStages.WithIfMatch, DefinitionStages.WithCertificate, DefinitionStages.WithCreate {
}

/**
Expand All @@ -69,8 +69,35 @@ interface Blank extends WithIotHub {
interface WithIotHub {
/**
* Specifies resourceGroupName, resourceName.
* @param resourceGroupName The name of the resource group that contains the IoT hub
* @param resourceName The name of the IoT hub
* @return the next definition stage
*/
WithCreate withExistingIotHub(String resourceGroupName, String resourceName);
WithIfMatch withExistingIotHub(String resourceGroupName, String resourceName);
}

/**
* The stage of the certificatedescription definition allowing to specify IfMatch.
*/
interface WithIfMatch {
/**
* Specifies ifMatch.
* @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update an existing certificate
* @return the next definition stage
*/
WithCertificate withIfMatch(String ifMatch);
}

/**
* The stage of the certificatedescription definition allowing to specify Certificate.
*/
interface WithCertificate {
/**
* Specifies certificate.
* @param certificate base-64 representation of the X509 leaf certificate .cer file or just .pem file content
* @return the next definition stage
*/
WithCreate withCertificate(String certificate);
}

/**
Expand All @@ -84,12 +111,36 @@ interface WithCreate extends Creatable<CertificateDescription> {
/**
* The template for a CertificateDescription update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<CertificateDescription> {
interface Update extends Appliable<CertificateDescription>, UpdateStages.WithIfMatch, UpdateStages.WithCertificate {
}

/**
* Grouping of CertificateDescription update stages.
*/
interface UpdateStages {
/**
* The stage of the certificatedescription update allowing to specify IfMatch.
*/
interface WithIfMatch {
/**
* Specifies ifMatch.
* @param ifMatch ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update an existing certificate
* @return the next update stage
*/
Update withIfMatch(String ifMatch);
}

/**
* The stage of the certificatedescription update allowing to specify Certificate.
*/
interface WithCertificate {
/**
* Specifies certificate.
* @param certificate base-64 representation of the X509 leaf certificate .cer file or just .pem file content
* @return the next update stage
*/
Update withCertificate(String certificate);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class CertificateProperties {
private String certificate;

/**
* Get the subject value.
* Get the certificate's subject name.
*
* @return the subject value
*/
Expand All @@ -68,7 +68,7 @@ public String subject() {
}

/**
* Get the expiry value.
* Get the certificate's expiration date and time.
*
* @return the expiry value
*/
Expand All @@ -80,7 +80,7 @@ public DateTime expiry() {
}

/**
* Get the thumbprint value.
* Get the certificate's thumbprint.
*
* @return the thumbprint value
*/
Expand All @@ -89,7 +89,7 @@ public String thumbprint() {
}

/**
* Get the isVerified value.
* Get determines whether certificate has been verified.
*
* @return the isVerified value
*/
Expand All @@ -98,7 +98,7 @@ public Boolean isVerified() {
}

/**
* Get the created value.
* Get the certificate's create date and time.
*
* @return the created value
*/
Expand All @@ -110,7 +110,7 @@ public DateTime created() {
}

/**
* Get the updated value.
* Get the certificate's last update date and time.
*
* @return the updated value
*/
Expand All @@ -122,7 +122,7 @@ public DateTime updated() {
}

/**
* Get the certificate value.
* Get the certificate content.
*
* @return the certificate value
*/
Expand All @@ -131,7 +131,7 @@ public String certificate() {
}

/**
* Set the certificate value.
* Set the certificate content.
*
* @param certificate the certificate value to set
* @return the CertificateProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class CertificatePropertiesWithNonce {
private String certificate;

/**
* Get the subject value.
* Get the certificate's subject name.
*
* @return the subject value
*/
Expand All @@ -76,7 +76,7 @@ public String subject() {
}

/**
* Get the expiry value.
* Get the certificate's expiration date and time.
*
* @return the expiry value
*/
Expand All @@ -88,7 +88,7 @@ public DateTime expiry() {
}

/**
* Get the thumbprint value.
* Get the certificate's thumbprint.
*
* @return the thumbprint value
*/
Expand All @@ -97,7 +97,7 @@ public String thumbprint() {
}

/**
* Get the isVerified value.
* Get determines whether certificate has been verified.
*
* @return the isVerified value
*/
Expand All @@ -106,7 +106,7 @@ public Boolean isVerified() {
}

/**
* Get the created value.
* Get the certificate's create date and time.
*
* @return the created value
*/
Expand All @@ -118,7 +118,7 @@ public DateTime created() {
}

/**
* Get the updated value.
* Get the certificate's last update date and time.
*
* @return the updated value
*/
Expand All @@ -130,7 +130,7 @@ public DateTime updated() {
}

/**
* Get the verificationCode value.
* Get the certificate's verification code that will be used for proof of possession.
*
* @return the verificationCode value
*/
Expand All @@ -139,7 +139,7 @@ public String verificationCode() {
}

/**
* Get the certificate value.
* Get the certificate content.
*
* @return the certificate value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CertificateVerificationDescription {
private String certificate;

/**
* Get the certificate value.
* Get base-64 representation of X509 certificate .cer file or just .pem file content.
*
* @return the certificate value
*/
Expand All @@ -31,7 +31,7 @@ public String certificate() {
}

/**
* Set the certificate value.
* Set base-64 representation of X509 certificate .cer file or just .pem file content.
*
* @param certificate the certificate value to set
* @return the CertificateVerificationDescription object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CloudToDeviceProperties {
private FeedbackProperties feedback;

/**
* Get the maxDeliveryCount value.
* Get the max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
* @return the maxDeliveryCount value
*/
Expand All @@ -47,7 +47,7 @@ public Integer maxDeliveryCount() {
}

/**
* Set the maxDeliveryCount value.
* Set the max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
* @param maxDeliveryCount the maxDeliveryCount value to set
* @return the CloudToDeviceProperties object itself.
Expand All @@ -58,7 +58,7 @@ public CloudToDeviceProperties withMaxDeliveryCount(Integer maxDeliveryCount) {
}

/**
* Get the defaultTtlAsIso8601 value.
* Get the default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
* @return the defaultTtlAsIso8601 value
*/
Expand All @@ -67,7 +67,7 @@ public Period defaultTtlAsIso8601() {
}

/**
* Set the defaultTtlAsIso8601 value.
* Set the default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
* @param defaultTtlAsIso8601 the defaultTtlAsIso8601 value to set
* @return the CloudToDeviceProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class ErrorDetails {
private String details;

/**
* Get the code value.
* Get the error code.
*
* @return the code value
*/
Expand All @@ -48,7 +48,7 @@ public String code() {
}

/**
* Get the httpStatusCode value.
* Get the HTTP status code.
*
* @return the httpStatusCode value
*/
Expand All @@ -57,7 +57,7 @@ public String httpStatusCode() {
}

/**
* Get the message value.
* Get the error message.
*
* @return the message value
*/
Expand All @@ -66,7 +66,7 @@ public String message() {
}

/**
* Get the details value.
* Get the error details.
*
* @return the details value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ interface Blank extends WithEventHubEndpoint {
interface WithEventHubEndpoint {
/**
* Specifies resourceGroupName, resourceName, eventHubEndpointName.
* @param resourceGroupName The name of the resource group that contains the IoT hub
* @param resourceName The name of the IoT hub
* @param eventHubEndpointName The name of the Event Hub-compatible endpoint in the IoT hub
* @return the next definition stage
*/
WithCreate withExistingEventHubEndpoint(String resourceGroupName, String resourceName, String eventHubEndpointName);
}
Expand Down
Loading

0 comments on commit 1962d90

Please sign in to comment.