Skip to content

Commit

Permalink
Merge pull request #1190 from jianghaolu/web
Browse files Browse the repository at this point in the history
Regenerate web app from 2016-09-01 api
  • Loading branch information
jianghaolu authored Oct 14, 2016
2 parents ab9c676 + 17b3f0d commit ee3467f
Show file tree
Hide file tree
Showing 78 changed files with 29,859 additions and 24,739 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* 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.website;

import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for CheckNameResourceTypes.
*/
public final class CheckNameResourceTypes {
/** Static value Site for CheckNameResourceTypes. */
public static final CheckNameResourceTypes SITE = new CheckNameResourceTypes("Site");

/** Static value Slot for CheckNameResourceTypes. */
public static final CheckNameResourceTypes SLOT = new CheckNameResourceTypes("Slot");

/** Static value HostingEnvironment for CheckNameResourceTypes. */
public static final CheckNameResourceTypes HOSTING_ENVIRONMENT = new CheckNameResourceTypes("HostingEnvironment");

private String value;

/**
* Creates a custom value for CheckNameResourceTypes.
* @param value the custom value
*/
public CheckNameResourceTypes(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof CheckNameResourceTypes)) {
return false;
}
if (obj == this) {
return true;
}
CheckNameResourceTypes rhs = (CheckNameResourceTypes) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.website;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Represents information needed for cloning operation.
Expand Down Expand Up @@ -44,6 +45,7 @@ public class CloningInfo {
* /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
* for other slots.
*/
@JsonProperty(required = true)
private String sourceWebAppId;

/**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public class ConnStringValueTypePair {

/**
* Type of database. Possible values include: 'MySql', 'SQLServer',
* 'SQLAzure', 'Custom'.
* 'SQLAzure', 'Custom', 'NotificationHub', 'ServiceBus', 'EventHub',
* 'ApiHub', 'DocDb', 'RedisCache'.
*/
@JsonProperty(required = true)
private DatabaseServerType type;
private ConnectionStringType type;

/**
* Get the value value.
Expand All @@ -51,7 +52,7 @@ public ConnStringValueTypePair withValue(String value) {
*
* @return the type value
*/
public DatabaseServerType type() {
public ConnectionStringType type() {
return this.type;
}

Expand All @@ -61,7 +62,7 @@ public DatabaseServerType type() {
* @param type the type value to set
* @return the ConnStringValueTypePair object itself.
*/
public ConnStringValueTypePair withType(DatabaseServerType type) {
public ConnStringValueTypePair withType(ConnectionStringType type) {
this.type = type;
return this;
}
Expand Down
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.website;

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

/**
* Defines values for ConnectionStringType.
*/
public enum ConnectionStringType {
/** Enum value MySql. */
MY_SQL("MySql"),

/** Enum value SQLServer. */
SQLSERVER("SQLServer"),

/** Enum value SQLAzure. */
SQLAZURE("SQLAzure"),

/** Enum value Custom. */
CUSTOM("Custom"),

/** Enum value NotificationHub. */
NOTIFICATION_HUB("NotificationHub"),

/** Enum value ServiceBus. */
SERVICE_BUS("ServiceBus"),

/** Enum value EventHub. */
EVENT_HUB("EventHub"),

/** Enum value ApiHub. */
API_HUB("ApiHub"),

/** Enum value DocDb. */
DOC_DB("DocDb"),

/** Enum value RedisCache. */
REDIS_CACHE("RedisCache");

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

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

/**
* Parses a serialized value to a ConnectionStringType instance.
*
* @param value the serialized value to parse.
* @return the parsed ConnectionStringType object, or null if unable to parse.
*/
@JsonCreator
public static ConnectionStringType fromString(String value) {
ConnectionStringType[] items = ConnectionStringType.values();
for (ConnectionStringType 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
Expand Up @@ -12,38 +12,35 @@
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for DatabaseServerType.
* Defines values for DnsVerificationTestResult.
*/
public enum DatabaseServerType {
/** Enum value MySql. */
MY_SQL("MySql"),
public enum DnsVerificationTestResult {
/** Enum value Passed. */
PASSED("Passed"),

/** Enum value SQLServer. */
SQLSERVER("SQLServer"),
/** Enum value Failed. */
FAILED("Failed"),

/** Enum value SQLAzure. */
SQLAZURE("SQLAzure"),
/** Enum value Skipped. */
SKIPPED("Skipped");

/** Enum value Custom. */
CUSTOM("Custom");

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

DatabaseServerType(String value) {
DnsVerificationTestResult(String value) {
this.value = value;
}

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

0 comments on commit ee3467f

Please sign in to comment.