Skip to content
Merged
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,53 @@
/**
* 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.provisioningservices;

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

/**
* Defines values for AccessRightsDescription.
*/
public final class AccessRightsDescription extends ExpandableStringEnum<AccessRightsDescription> {
/** Static value ServiceConfig for AccessRightsDescription. */
public static final AccessRightsDescription SERVICE_CONFIG = fromString("ServiceConfig");

/** Static value EnrollmentRead for AccessRightsDescription. */
public static final AccessRightsDescription ENROLLMENT_READ = fromString("EnrollmentRead");

/** Static value EnrollmentWrite for AccessRightsDescription. */
public static final AccessRightsDescription ENROLLMENT_WRITE = fromString("EnrollmentWrite");

/** Static value DeviceConnect for AccessRightsDescription. */
public static final AccessRightsDescription DEVICE_CONNECT = fromString("DeviceConnect");

/** Static value RegistrationStatusRead for AccessRightsDescription. */
public static final AccessRightsDescription REGISTRATION_STATUS_READ = fromString("RegistrationStatusRead");

/** Static value RegistrationStatusWrite for AccessRightsDescription. */
public static final AccessRightsDescription REGISTRATION_STATUS_WRITE = fromString("RegistrationStatusWrite");

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

/**
* @return known AccessRightsDescription values
*/
public static Collection<AccessRightsDescription> values() {
return values(AccessRightsDescription.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.provisioningservices;

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

/**
* Defines values for AllocationPolicy.
*/
public final class AllocationPolicy extends ExpandableStringEnum<AllocationPolicy> {
/** Static value Hashed for AllocationPolicy. */
public static final AllocationPolicy HASHED = fromString("Hashed");

/** Static value GeoLatency for AllocationPolicy. */
public static final AllocationPolicy GEO_LATENCY = fromString("GeoLatency");

/** Static value Static for AllocationPolicy. */
public static final AllocationPolicy STATIC = fromString("Static");

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

/**
* @return known AllocationPolicy values
*/
public static Collection<AllocationPolicy> values() {
return values(AllocationPolicy.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.provisioningservices;

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.provisioningservices;

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 creation 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();
}

}
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.provisioningservices;

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

/**
* Defines values for CertificatePurpose.
*/
public final class CertificatePurpose extends ExpandableStringEnum<CertificatePurpose> {
/** Static value clientAuthentication for CertificatePurpose. */
public static final CertificatePurpose CLIENT_AUTHENTICATION = fromString("clientAuthentication");

/** Static value serverAuthentication for CertificatePurpose. */
public static final CertificatePurpose SERVER_AUTHENTICATION = fromString("serverAuthentication");

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

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Error details.
*/
public class ErrorDetails {
/**
* The error code.
*/
@JsonProperty(value = "Code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

/**
* The HTTP status code.
*/
@JsonProperty(value = "HttpStatusCode", access = JsonProperty.Access.WRITE_ONLY)
private String httpStatusCode;

/**
* The error message.
*/
@JsonProperty(value = "Message", access = JsonProperty.Access.WRITE_ONLY)
private String message;

/**
* The error details.
*/
@JsonProperty(value = "Details", access = JsonProperty.Access.WRITE_ONLY)
private String details;

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

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

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

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

}
Loading