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 sql/resource-manager] Updated Swagger Files For SQL Managed Database and Managed Instance #13

Open
wants to merge 2 commits into
base: restapi_auto_sql/resource-manager
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,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.sql;

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

/**
* Defines values for CapabilityGroup.
*/
public final class CapabilityGroup extends ExpandableStringEnum<CapabilityGroup> {
/** Static value supportedEditions for CapabilityGroup. */
public static final CapabilityGroup SUPPORTED_EDITIONS = fromString("supportedEditions");

/** Static value supportedElasticPoolEditions for CapabilityGroup. */
public static final CapabilityGroup SUPPORTED_ELASTIC_POOL_EDITIONS = fromString("supportedElasticPoolEditions");

/** Static value supportedManagedInstanceVersions for CapabilityGroup. */
public static final CapabilityGroup SUPPORTED_MANAGED_INSTANCE_VERSIONS = fromString("supportedManagedInstanceVersions");

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

/**
* @return known CapabilityGroup values
*/
public static Collection<CapabilityGroup> values() {
return values(CapabilityGroup.class);
}
}
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.sql;

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

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

/** Static value SQL_Latin1_General_CP1_CI_AS for CatalogCollationType. */
public static final CatalogCollationType SQL_LATIN1_GENERAL_CP1_CI_AS = fromString("SQL_Latin1_General_CP1_CI_AS");

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

/**
* @return known CatalogCollationType values
*/
public static Collection<CatalogCollationType> values() {
return values(CatalogCollationType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,36 @@
* Defines values for CreateMode.
*/
public final class CreateMode extends ExpandableStringEnum<CreateMode> {
/** Static value Copy for CreateMode. */
public static final CreateMode COPY = fromString("Copy");

/** Static value Default for CreateMode. */
public static final CreateMode DEFAULT = fromString("Default");

/** Static value NonReadableSecondary for CreateMode. */
public static final CreateMode NON_READABLE_SECONDARY = fromString("NonReadableSecondary");
/** Static value Copy for CreateMode. */
public static final CreateMode COPY = fromString("Copy");

/** Static value OnlineSecondary for CreateMode. */
public static final CreateMode ONLINE_SECONDARY = fromString("OnlineSecondary");
/** Static value Secondary for CreateMode. */
public static final CreateMode SECONDARY = fromString("Secondary");

/** Static value PointInTimeRestore for CreateMode. */
public static final CreateMode POINT_IN_TIME_RESTORE = fromString("PointInTimeRestore");

/** Static value Restore for CreateMode. */
public static final CreateMode RESTORE = fromString("Restore");

/** Static value Recovery for CreateMode. */
public static final CreateMode RECOVERY = fromString("Recovery");

/** Static value Restore for CreateMode. */
public static final CreateMode RESTORE = fromString("Restore");
/** Static value RestoreExternalBackup for CreateMode. */
public static final CreateMode RESTORE_EXTERNAL_BACKUP = fromString("RestoreExternalBackup");

/** Static value RestoreExternalBackupSecondary for CreateMode. */
public static final CreateMode RESTORE_EXTERNAL_BACKUP_SECONDARY = fromString("RestoreExternalBackupSecondary");

/** Static value RestoreLongTermRetentionBackup for CreateMode. */
public static final CreateMode RESTORE_LONG_TERM_RETENTION_BACKUP = fromString("RestoreLongTermRetentionBackup");

/** Static value OnlineSecondary for CreateMode. */
public static final CreateMode ONLINE_SECONDARY = fromString("OnlineSecondary");

/**
* Creates or finds a CreateMode from its string representation.
* @param name a name to look for
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.sql;

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

/**
* Defines values for DatabaseLicenseType.
*/
public final class DatabaseLicenseType extends ExpandableStringEnum<DatabaseLicenseType> {
/** Static value LicenseIncluded for DatabaseLicenseType. */
public static final DatabaseLicenseType LICENSE_INCLUDED = fromString("LicenseIncluded");

/** Static value BasePrice for DatabaseLicenseType. */
public static final DatabaseLicenseType BASE_PRICE = fromString("BasePrice");

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

/**
* @return known DatabaseLicenseType values
*/
public static Collection<DatabaseLicenseType> values() {
return values(DatabaseLicenseType.class);
}
}
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.sql;

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

/**
* Defines values for DatabaseReadScale.
*/
public final class DatabaseReadScale extends ExpandableStringEnum<DatabaseReadScale> {
/** Static value Enabled for DatabaseReadScale. */
public static final DatabaseReadScale ENABLED = fromString("Enabled");

/** Static value Disabled for DatabaseReadScale. */
public static final DatabaseReadScale DISABLED = fromString("Disabled");

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

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

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

/**
* Defines values for DatabaseStatus.
*/
public final class DatabaseStatus extends ExpandableStringEnum<DatabaseStatus> {
/** Static value Online for DatabaseStatus. */
public static final DatabaseStatus ONLINE = fromString("Online");

/** Static value Restoring for DatabaseStatus. */
public static final DatabaseStatus RESTORING = fromString("Restoring");

/** Static value RecoveryPending for DatabaseStatus. */
public static final DatabaseStatus RECOVERY_PENDING = fromString("RecoveryPending");

/** Static value Recovering for DatabaseStatus. */
public static final DatabaseStatus RECOVERING = fromString("Recovering");

/** Static value Suspect for DatabaseStatus. */
public static final DatabaseStatus SUSPECT = fromString("Suspect");

/** Static value Offline for DatabaseStatus. */
public static final DatabaseStatus OFFLINE = fromString("Offline");

/** Static value Standby for DatabaseStatus. */
public static final DatabaseStatus STANDBY = fromString("Standby");

/** Static value Shutdown for DatabaseStatus. */
public static final DatabaseStatus SHUTDOWN = fromString("Shutdown");

/** Static value EmergencyMode for DatabaseStatus. */
public static final DatabaseStatus EMERGENCY_MODE = fromString("EmergencyMode");

/** Static value AutoClosed for DatabaseStatus. */
public static final DatabaseStatus AUTO_CLOSED = fromString("AutoClosed");

/** Static value Copying for DatabaseStatus. */
public static final DatabaseStatus COPYING = fromString("Copying");

/** Static value Creating for DatabaseStatus. */
public static final DatabaseStatus CREATING = fromString("Creating");

/** Static value Inaccessible for DatabaseStatus. */
public static final DatabaseStatus INACCESSIBLE = fromString("Inaccessible");

/** Static value OfflineSecondary for DatabaseStatus. */
public static final DatabaseStatus OFFLINE_SECONDARY = fromString("OfflineSecondary");

/** Static value Pausing for DatabaseStatus. */
public static final DatabaseStatus PAUSING = fromString("Pausing");

/** Static value Paused for DatabaseStatus. */
public static final DatabaseStatus PAUSED = fromString("Paused");

/** Static value Resuming for DatabaseStatus. */
public static final DatabaseStatus RESUMING = fromString("Resuming");

/** Static value Scaling for DatabaseStatus. */
public static final DatabaseStatus SCALING = fromString("Scaling");

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

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