Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] iothub/resource-manager #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/**
* 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.management.iothub;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AccessRights.
*/
public enum AccessRights {
/** Enum value RegistryRead. */
REGISTRY_READ("RegistryRead"),

/** Enum value RegistryWrite. */
REGISTRY_WRITE("RegistryWrite"),

/** Enum value ServiceConnect. */
SERVICE_CONNECT("ServiceConnect"),

/** Enum value DeviceConnect. */
DEVICE_CONNECT("DeviceConnect"),

/** Enum value RegistryRead, RegistryWrite. */
REGISTRY_READ_REGISTRY_WRITE("RegistryRead, RegistryWrite"),

/** Enum value RegistryRead, ServiceConnect. */
REGISTRY_READ_SERVICE_CONNECT("RegistryRead, ServiceConnect"),

/** Enum value RegistryRead, DeviceConnect. */
REGISTRY_READ_DEVICE_CONNECT("RegistryRead, DeviceConnect"),

/** Enum value RegistryWrite, ServiceConnect. */
REGISTRY_WRITE_SERVICE_CONNECT("RegistryWrite, ServiceConnect"),

/** Enum value RegistryWrite, DeviceConnect. */
REGISTRY_WRITE_DEVICE_CONNECT("RegistryWrite, DeviceConnect"),

/** Enum value ServiceConnect, DeviceConnect. */
SERVICE_CONNECT_DEVICE_CONNECT("ServiceConnect, DeviceConnect"),

/** Enum value RegistryRead, RegistryWrite, ServiceConnect. */
REGISTRY_READ_REGISTRY_WRITE_SERVICE_CONNECT("RegistryRead, RegistryWrite, ServiceConnect"),

/** Enum value RegistryRead, RegistryWrite, DeviceConnect. */
REGISTRY_READ_REGISTRY_WRITE_DEVICE_CONNECT("RegistryRead, RegistryWrite, DeviceConnect"),

/** Enum value RegistryRead, ServiceConnect, DeviceConnect. */
REGISTRY_READ_SERVICE_CONNECT_DEVICE_CONNECT("RegistryRead, ServiceConnect, DeviceConnect"),

/** Enum value RegistryWrite, ServiceConnect, DeviceConnect. */
REGISTRY_WRITE_SERVICE_CONNECT_DEVICE_CONNECT("RegistryWrite, ServiceConnect, DeviceConnect"),

/** Enum value RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect. */
REGISTRY_READ_REGISTRY_WRITE_SERVICE_CONNECT_DEVICE_CONNECT("RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect");

/** The actual serialized value for a AccessRights instance. */
private String value;

AccessRights(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AccessRights instance.
*
* @param value the serialized value to parse.
* @return the parsed AccessRights object, or null if unable to parse.
*/
@JsonCreator
public static AccessRights fromString(String value) {
AccessRights[] items = AccessRights.values();
for (AccessRights item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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.management.iothub;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for Capabilities.
*/
public final class Capabilities extends ExpandableStringEnum<Capabilities> {
/** Static value None for Capabilities. */
public static final Capabilities NONE = fromString("None");

/** Static value DeviceManagement for Capabilities. */
public static final Capabilities DEVICE_MANAGEMENT = fromString("DeviceManagement");

/**
* Creates or finds a Capabilities from its string representation.
* @param name a name to look for
* @return the corresponding Capabilities
*/
@JsonCreator
public static Capabilities fromString(String name) {
return fromString(name, Capabilities.class);
}

/**
* @return known Capabilities values
*/
public static Collection<Capabilities> values() {
return values(Capabilities.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.management.iothub;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The JSON-serialized X509 Certificate.
*/
public class CertificateBodyDescription {
/**
* base-64 representation of the X509 leaf certificate .cer file or just
* .pem file content.
*/
@JsonProperty(value = "certificate")
private String certificate;

/**
* Get the certificate value.
*
* @return the certificate value
*/
public String certificate() {
return this.certificate;
}

/**
* Set the certificate value.
*
* @param certificate the certificate value to set
* @return the CertificateBodyDescription object itself.
*/
public CertificateBodyDescription withCertificate(String certificate) {
this.certificate = certificate;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/**
* 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.management.iothub;

import com.microsoft.rest.DateTimeRfc1123;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The description of an X509 CA Certificate.
*/
public class CertificateProperties {
/**
* The certificate's subject name.
*/
@JsonProperty(value = "subject", access = JsonProperty.Access.WRITE_ONLY)
private String subject;

/**
* The certificate's expiration date and time.
*/
@JsonProperty(value = "expiry", access = JsonProperty.Access.WRITE_ONLY)
private DateTimeRfc1123 expiry;

/**
* The certificate's thumbprint.
*/
@JsonProperty(value = "thumbprint", access = JsonProperty.Access.WRITE_ONLY)
private String thumbprint;

/**
* Determines whether certificate has been verified.
*/
@JsonProperty(value = "isVerified", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isVerified;

/**
* The certificate's create date and time.
*/
@JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
private DateTimeRfc1123 created;

/**
* The certificate's last update date and time.
*/
@JsonProperty(value = "updated", access = JsonProperty.Access.WRITE_ONLY)
private DateTimeRfc1123 updated;

/**
* Get the subject value.
*
* @return the subject value
*/
public String subject() {
return this.subject;
}

/**
* Get the expiry value.
*
* @return the expiry value
*/
public DateTime expiry() {
if (this.expiry == null) {
return null;
}
return this.expiry.dateTime();
}

/**
* Get the thumbprint value.
*
* @return the thumbprint value
*/
public String thumbprint() {
return this.thumbprint;
}

/**
* Get the isVerified value.
*
* @return the isVerified value
*/
public Boolean isVerified() {
return this.isVerified;
}

/**
* Get the created value.
*
* @return the created value
*/
public DateTime created() {
if (this.created == null) {
return null;
}
return this.created.dateTime();
}

/**
* Get the updated value.
*
* @return the updated value
*/
public DateTime updated() {
if (this.updated == null) {
return null;
}
return this.updated.dateTime();
}

}
Loading