Skip to content
Closed
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
Expand Up @@ -19,7 +19,7 @@ public class ApplicationGetHttpsEndpoint {
* The list of access modes for the application.
*/
@JsonProperty(value = "accessModes")
private List<String> accessModes;
private List<ApplicationHttpsEndpointAccessMode> accessModes;

/**
* The location of the endpoint.
Expand All @@ -39,12 +39,25 @@ public class ApplicationGetHttpsEndpoint {
@JsonProperty(value = "publicPort")
private Integer publicPort;

/**
* The subDomainSuffix of the application and can not greater than 3
* characters.
*/
@JsonProperty(value = "subDomainSuffix")
private String subDomainSuffix;

/**
* The value indicates whether to disable GatewayAuth.
*/
@JsonProperty(value = "disableGatewayAuth")
private Boolean disableGatewayAuth;

/**
* Get the list of access modes for the application.
*
* @return the accessModes value
*/
public List<String> accessModes() {
public List<ApplicationHttpsEndpointAccessMode> accessModes() {
return this.accessModes;
}

Expand All @@ -54,7 +67,7 @@ public List<String> accessModes() {
* @param accessModes the accessModes value to set
* @return the ApplicationGetHttpsEndpoint object itself.
*/
public ApplicationGetHttpsEndpoint withAccessModes(List<String> accessModes) {
public ApplicationGetHttpsEndpoint withAccessModes(List<ApplicationHttpsEndpointAccessMode> accessModes) {
this.accessModes = accessModes;
return this;
}
Expand Down Expand Up @@ -119,4 +132,44 @@ public ApplicationGetHttpsEndpoint withPublicPort(Integer publicPort) {
return this;
}

/**
* Get the subDomainSuffix of the application and can not greater than 3 characters.
*
* @return the subDomainSuffix value
*/
public String subDomainSuffix() {
return this.subDomainSuffix;
}

/**
* Set the subDomainSuffix of the application and can not greater than 3 characters.
*
* @param subDomainSuffix the subDomainSuffix value to set
* @return the ApplicationGetHttpsEndpoint object itself.
*/
public ApplicationGetHttpsEndpoint withSubDomainSuffix(String subDomainSuffix) {
this.subDomainSuffix = subDomainSuffix;
return this;
}

/**
* Get the value indicates whether to disable GatewayAuth.
*
* @return the disableGatewayAuth value
*/
public Boolean disableGatewayAuth() {
return this.disableGatewayAuth;
}

/**
* Set the value indicates whether to disable GatewayAuth.
*
* @param disableGatewayAuth the disableGatewayAuth value to set
* @return the ApplicationGetHttpsEndpoint object itself.
*/
public ApplicationGetHttpsEndpoint withDisableGatewayAuth(Boolean disableGatewayAuth) {
this.disableGatewayAuth = disableGatewayAuth;
return this;
}

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

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

/**
* Defines values for ApplicationHttpsEndpointAccessMode.
*/
public final class ApplicationHttpsEndpointAccessMode extends ExpandableStringEnum<ApplicationHttpsEndpointAccessMode> {
/** Static value WebPage for ApplicationHttpsEndpointAccessMode. */
public static final ApplicationHttpsEndpointAccessMode WEB_PAGE = fromString("WebPage");

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

/**
* @return known ApplicationHttpsEndpointAccessMode values
*/
public static Collection<ApplicationHttpsEndpointAccessMode> values() {
return values(ApplicationHttpsEndpointAccessMode.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ public class ApplicationProperties {
private String provisioningState;

/**
* The application type.
* The application type. Possible values include: 'CustomApplication',
* 'RServer'.
*/
@JsonProperty(value = "applicationType")
private String applicationType;
private ApplicationType applicationType;

/**
* The application state.
Expand Down Expand Up @@ -191,21 +192,21 @@ public String provisioningState() {
}

/**
* Get the application type.
* Get the application type. Possible values include: 'CustomApplication', 'RServer'.
*
* @return the applicationType value
*/
public String applicationType() {
public ApplicationType applicationType() {
return this.applicationType;
}

/**
* Set the application type.
* Set the application type. Possible values include: 'CustomApplication', 'RServer'.
*
* @param applicationType the applicationType value to set
* @return the ApplicationProperties object itself.
*/
public ApplicationProperties withApplicationType(String applicationType) {
public ApplicationProperties withApplicationType(ApplicationType applicationType) {
this.applicationType = applicationType;
return this;
}
Expand Down
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.hdinsight.v2015_03_01_preview;

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

/**
* Defines values for ApplicationType.
*/
public final class ApplicationType extends ExpandableStringEnum<ApplicationType> {
/** Static value CustomApplication for ApplicationType. */
public static final ApplicationType CUSTOM_APPLICATION = fromString("CustomApplication");

/** Static value RServer for ApplicationType. */
public static final ApplicationType RSERVER = fromString("RServer");

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

/**
* @return known ApplicationType values
*/
public static Collection<ApplicationType> values() {
return values(ApplicationType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,64 @@
* The regional quota capability.
*/
public class QuotaCapability {
/**
* The number of cores used in the subscription.
*/
@JsonProperty(value = "cores_used")
private Long coresUsed;

/**
* The number of cores that the subscription allowed.
*/
@JsonProperty(value = "max_cores_allowed")
private Long maxCoresAllowed;

/**
* The list of region quota capabilities.
*/
@JsonProperty(value = "regionalQuotas")
private List<RegionalQuotaCapability> regionalQuotas;

/**
* Get the number of cores used in the subscription.
*
* @return the coresUsed value
*/
public Long coresUsed() {
return this.coresUsed;
}

/**
* Set the number of cores used in the subscription.
*
* @param coresUsed the coresUsed value to set
* @return the QuotaCapability object itself.
*/
public QuotaCapability withCoresUsed(Long coresUsed) {
this.coresUsed = coresUsed;
return this;
}

/**
* Get the number of cores that the subscription allowed.
*
* @return the maxCoresAllowed value
*/
public Long maxCoresAllowed() {
return this.maxCoresAllowed;
}

/**
* Set the number of cores that the subscription allowed.
*
* @param maxCoresAllowed the maxCoresAllowed value to set
* @return the QuotaCapability object itself.
*/
public QuotaCapability withMaxCoresAllowed(Long maxCoresAllowed) {
this.maxCoresAllowed = maxCoresAllowed;
return this;
}

/**
* Get the list of region quota capabilities.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class RegionalQuotaCapability {
private Long coresUsed;

/**
* The number of courses available in the region.
* The number of cores available in the region.
*/
@JsonProperty(value = "cores_available")
private Long coresAvailable;
Expand Down Expand Up @@ -73,7 +73,7 @@ public RegionalQuotaCapability withCoresUsed(Long coresUsed) {
}

/**
* Get the number of courses available in the region.
* Get the number of cores available in the region.
*
* @return the coresAvailable value
*/
Expand All @@ -82,7 +82,7 @@ public Long coresAvailable() {
}

/**
* Set the number of courses available in the region.
* Set the number of cores available in the region.
*
* @param coresAvailable the coresAvailable value to set
* @return the RegionalQuotaCapability object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ApplicationGetHttpsEndpoint {
* The list of access modes for the application.
*/
@JsonProperty(value = "accessModes")
private List<String> accessModes;
private List<ApplicationHttpsEndpointAccessMode> accessModes;

/**
* The location of the endpoint.
Expand Down Expand Up @@ -56,7 +56,7 @@ public class ApplicationGetHttpsEndpoint {
*
* @return the accessModes value
*/
public List<String> accessModes() {
public List<ApplicationHttpsEndpointAccessMode> accessModes() {
return this.accessModes;
}

Expand All @@ -66,7 +66,7 @@ public List<String> accessModes() {
* @param accessModes the accessModes value to set
* @return the ApplicationGetHttpsEndpoint object itself.
*/
public ApplicationGetHttpsEndpoint withAccessModes(List<String> accessModes) {
public ApplicationGetHttpsEndpoint withAccessModes(List<ApplicationHttpsEndpointAccessMode> accessModes) {
this.accessModes = accessModes;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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.hdinsight.v2018_06_01_preview;

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

/**
* Defines values for ApplicationHttpsEndpointAccessMode.
*/
public final class ApplicationHttpsEndpointAccessMode extends ExpandableStringEnum<ApplicationHttpsEndpointAccessMode> {
/** Static value WebPage for ApplicationHttpsEndpointAccessMode. */
public static final ApplicationHttpsEndpointAccessMode WEB_PAGE = fromString("WebPage");

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

/**
* @return known ApplicationHttpsEndpointAccessMode values
*/
public static Collection<ApplicationHttpsEndpointAccessMode> values() {
return values(ApplicationHttpsEndpointAccessMode.class);
}
}
Loading